Add contacts
Add contacts to a list with name, phone number and email.
MCP tool clicksend_write → add_contacts
write Confirm
Adds the contacts to one list as Add on the list page does. Each contact needs a phone number with the country code. A campaign scheduled for this list also goes to contacts added before it sends, so the call waits for your OK. It does not check the Opt-Out List: run remove_opted_out_contacts after. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| list_id integer required | integer | Contact list ID from list_contact_lists. |
| contacts array required | array | Objects with phone_number (required), first_name, last_name and email. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "clicksend_write",
"arguments": {
"operation": "add_contacts",
"arguments": {
"list_id": 1,
"contacts": "contacts"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"list_id": 128741,
"list": "Webinar leads",
"added": 2
},
"isError": false
}