Remove duplicate contacts
Remove duplicate contacts inside one list, by phone number or email.
MCP tool clicksend_write → remove_duplicates
write Confirm
Runs Clean Up > Remove Duplicates on one list, comparing the field you pick. It works inside one list only, never across lists. The result is the number of contacts the list lost. 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. |
| field enum required | enum | phone_number or email. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "clicksend_write",
"arguments": {
"operation": "remove_duplicates",
"arguments": {
"list_id": 1,
"field": "phone_number"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"list_id": 128734,
"list": "Newsletter subscribers",
"compared": "phone_number",
"removed": 9
},
"isError": false
}