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

Parameters: merge_contacts
NameTypeDescription
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

JSON-RPC

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

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "merged": true,
    "contact_id": 1042,
    "removed_contact_id": 2217
  },
  "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.