List segments
Saved segments under Contacts, within one list or across all contacts.
MCP tool simpletexting_read → list_segments
read
Reads the segments saved under Contacts > Segments: name, the list it belongs to (or all contacts) and how many contacts match now. Segments can be used in campaigns and autoresponders, so a segment name from here works as the segment of schedule_campaign.
Parameters
| Name | Type | Description |
|---|---|---|
| list string | string | Only segments created within this list. Leave out for all. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "simpletexting_read",
"arguments": {
"operation": "list_segments",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"segments": [
{
"name": "Overdue for a cleaning",
"list": "Patients",
"contacts": 120
},
{
"name": "New this month",
"list": null,
"contacts": 34
}
]
},
"isError": false
}