Create Deduplication Run
create_deduplication_runCreate a run that finds duplicate records in a scope and queues each group for review. It does nothing until dispatched, and it merges nothing on its own -- a merge is a separate decision per group, through approve_duplicate_group. It requires one rule template per kind (matching, master_record, survivorship); the connection is seeded a Default for each.
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": {
"connection_id": "<connection_id>",
"name": "<name>",
"object_type": "<object_type>",
"template_ids": "<template_ids>"
},
"name": "create_deduplication_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for the run, shown in the Runs tab. It finds duplicates; it does not merge them. | |
| write_back | No | Has no effect on a deduplication run, which never writes when dispatched: it detects duplicate groups and queues each for review. Leave it unset. | |
| filter_spec | No | Which records this run covers, as a filter tree. Omit for the whole object. It DESCRIBES a population and is resolved when the run is DISPATCHED, so write what you mean -- the CRO at Skypoint is `account_name is Skypoint AND title contains CRO` -- and never look a record up to write one. You need no ids and no counts. Call list_filterable_fields first, for the field names and operators only. | |
| object_type | Yes | Which records the run deduplicates: contact, account or lead finds duplicates within that object; lead_to_contact (Salesforce only) matches each Lead in scope against existing Contacts, and approving a group converts the Lead into that Contact and its Account. For lead_to_contact the filter_spec scopes Leads (object_type 'lead'), and the templates are lead_to_contact templates. | |
| template_ids | Yes | One rule template id per kind: matching, master_record and survivorship. All three are required -- a run that does not fully specify its pass is refused. Call list_rule_templates with tool_type=deduplication to get them; every connection is seeded a Default of each kind. | |
| connection_id | Yes | The CRM connection. Required. Call list_crm_connections to get one. |