List contact lists

Contact lists of the account, by name, with their IDs.

MCP tool clicksend_read → list_contact_lists

read

Returns the lists shown on the Contacts page, 50 to a page; pass next_cursor back as cursor for the next page. query filters by name. list_id goes into the other list tools and into send_sms and create_sms_campaign. ClickSend allows up to 2,000 contact lists, and every contact belongs to exactly one list.

Parameters

Parameters: list_contact_lists
NameTypeDescription
query string string Part of the list name.
cursor string string Next page cursor from the previous call.

tools/call

JSON-RPC

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

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "lists": [
      {
        "list_id": 128734,
        "name": "Newsletter subscribers"
      },
      {
        "list_id": 128741,
        "name": "Webinar leads"
      }
    ],
    "next_cursor": null
  },
  "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.