update_contact_primary_email_or_phone
Set the calling user's primary email or primary phone for a contact saved in FuseAI, replacing the current one; teammates keep their own primaries. Pass the contactId plus primaryEmail and/or primaryPhone. A phone is saved in E.164 form, and setting one also rewrites the user's stored phone list in that form, merging duplicates. Each call also restores the contact, with that teammate's earlier data, for any teammate who had deleted it, and adds an empty record of it for teammates who never held it; a restored contact's emails are back too, so that teammate's active campaigns on lists holding the contact can start emailing the person again. Contacts already enrolled in a campaign keep the address they were enrolled with. The value must be one of the emails/phones ALREADY STORED in the user's own record of the contact; a value that record does not have fails with PRIMARY_EMAIL_NOT_IN_EMAILS / PRIMARY_PHONE_NOT_IN_PHONES instead of being added.
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": {
"contactId": "<contactId>"
},
"name": "update_contact_primary_email_or_phone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | The CRM contact id (24-character Mongo id) | |
| primaryEmail | No | The new primary email address | |
| primaryPhone | No | The new primary phone number |