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

Parameters: list_segments
NameTypeDescription
list string string Only segments created within this list. Leave out for all.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "simpletexting_read",
    "arguments": {
      "operation": "list_segments",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.