Merge Contacts
merge_contactsMerge a duplicate contact into the record to keep, consolidating interactions, deals, references, and empty fields while archiving the duplicate.
Instructions
Merge a duplicate contact into the one to keep, so two records of one person become one.
ALWAYS CONFIRM WITH THE USER BEFORE CALLING THIS. Show them both records, say which will
be kept (target_id) and which merged away (source_id), and call this only after
they say to proceed; never pick the duplicate on your own judgment. The kept contact takes
every interaction, signal and external reference of the other, and every deal naming the
other as its contact; its empty fields are filled from it, and a value it holds is never
overwritten. The merged-away record is archived, not
deleted (archive_contact(archived=false) restores it as a record of its own). Use this only for duplicates that already exist (find_or_create_contact
avoids making them), and never rename a duplicate instead: its interactions would stay on
the wrong record.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target_id": "<target_id>",
"source_id": "<source_id>"
},
"name": "merge_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes | The duplicate to merge into it and archive. | |
| target_id | Yes | The contact to keep. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||