Add or update a CRM record
crm_add_or_updateAdd a new CRM record or update the matching customer by record ID, phone, or email. Fill empty fields only, or set overwrite to replace existing values.
Instructions
Add a record, or update the customer it matches. An existing customer is matched by record_id, or else by phone number and email in the fields, and duplicates can match the wrong record. Only empty values are filled unless overwrite is true.
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": {
"fields": "<fields>"
},
"name": "crm_add_or_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Field names and values, such as FIRST_NAME and CELL_PHONE. A customer needs a name, phone number or email. | |
| overwrite | No | Replace existing values, not just fill in empty ones. | |
| record_id | No | ID of the customer to update. Customers only. | |
| record_type | No | Type of record. Default: customer. | customer |
| match_email_first | No | Match an existing record by email before phone number. |