Skip to main content
Glama

update_contact_primary_email_or_phone

Destructive

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

NameRequiredDescriptionDefault
contactIdYesThe CRM contact id (24-character Mongo id)
primaryEmailNoThe new primary email address
primaryPhoneNoThe new primary phone number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the destructiveHint/openWorldHint annotations by disclosing concrete side effects: phone values are rewritten in E.164 across the stored phone list with duplicate merging, contacts deleted by teammates are restored with their prior emails, empty records are created for teammates who never held the contact, and restored contacts can resume being emailed by active campaigns. It also carves out an exception (contacts already enrolled keep their enrolled address), which is exactly the kind of behavior an agent cannot infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and scoping, and nearly every sentence carries non-obvious information. However, it is a dense single paragraph of semicolon-chained clauses, so the teammate-restoration side effects and the pre-existing-value constraint are harder to scan than they should be for a destructive operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive three-parameter mutation with no output schema, the description covers scope, required value provenance, normalization, cross-teammate side effects, campaign interactions, and error codes. Nothing an agent needs to invoke it safely appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description adds real meaning: primaryEmail and primaryPhone are 'and/or' (at least one implied even though the schema only requires contactId), the phone is normalized to E.164, and the supplied value must match an existing stored entry. That is meaningful semantics beyond the field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Set the calling user's primary email or primary phone for a contact') and immediately scopes it to the calling user, noting 'teammates keep their own primaries'. That scope note distinguishes it from a general multi-user contact update without needing the sibling catalog.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear precondition for use — the value must already exist in the user's stored record of the contact — and names the concrete failure modes (PRIMARY_EMAIL_NOT_IN_EMAILS / PRIMARY_PHONE_NOT_IN_PHONES) rather than silently adding a new value. It does not name an alternative tool for adding a brand-new address or route the agent elsewhere, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.