Merge contacts
Merges a duplicate into a contact, like the Merge item on the contact page.
MCP tool mautic_write → merge_contacts
write Confirm
Runs the Merge action from contact_id: the contact you open, then the duplicate you search for. A merge cannot be undone through Cotlet, and an ID that does not exist fails before anything changes. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| contact_id integer required | integer | The contact you open and keep, from list_contacts. |
| duplicate_id integer required | integer | The duplicate to merge into it, from list_contacts. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "mautic_write",
"arguments": {
"operation": "merge_contacts",
"arguments": {
"contact_id": 1042,
"duplicate_id": 2217
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"merged": true,
"contact_id": 1042,
"removed_contact_id": 2217
},
"isError": false
}