merge_records
Merge duplicate records. Keeps keep_id, folds each drop_ids record's relations (calls/emails/campaigns/meetings/memory/channels/…) into it, then DELETES the duplicates. Fields: primary wins, its empty fields are filled from the duplicate, and field_overrides forces final values for conflicts. entity = 'lead'|'contact'|'account'. IRREVERSIBLE.
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": {
"entity": "<entity>",
"keep_id": "<keep_id>",
"drop_ids": "<drop_ids>"
},
"name": "merge_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | lead | contact | account | |
| keep_id | Yes | the record to keep (primary) | |
| drop_ids | Yes | duplicate record ids to merge in and delete | |
| field_overrides | No | final values for specific columns on the kept record (wins over primary+gap-fill) |