Skip to main content
Glama

Update a contact

update_contact
DestructiveIdempotent

Update a contact

Changes the fields you send. Email and the platform ids are how Mojeeb recognises the person, so they are read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
mobileNoA valid number in E.164 (`+201001234567`), or an empty string to clear it. Change it only to correct a wrong number: a WhatsApp message from the old number no longer matches this contact.
statusNo
agent_idYesThe agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`.
contact_idYesA contact of the agent. Another agent's contact is `404 not_found`.
custom_fieldsNoFree-form fields keyed by name, stored as sent (see Partial updates in the API description for how date-time strings and decimals are normalized). For a lead, use the keys of the agent's own lead fields (`listLeadFields`, `built_in: false`), and the whole object is limited to about 10,000 characters of JSON (`422 invalid_request` beyond). Mojeeb doesn't check keys or values against the fields' `type`, `options` or `required`. On update the object merges key by key, and a key sent as `null` stays with the value `null`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false, so safety is partly covered. The description adds genuinely new behavioral context: it discloses partial-merge semantics ('Changes the fields you send') and that email/platform ids are read-only identity fields. It does not, however, explain the destructiveHint=true implication (what gets overwritten or lost).

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?

Two short sentences, front-loaded with the purpose before the constraint. 'Changes the fields you send' is slightly informal but every sentence earns its place with no padding.

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

Completeness3/5

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

For a mutation tool with no output schema and nested custom_fields, the description covers the key gotcha (partial update, read-only identity). It leaves the destructiveHint=true and idempotent behavior unexplained, so an agent cannot fully predict the consequences of the call.

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

Parameters3/5

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

At 67% schema coverage the schema carries most weight, fully documenting mobile, agent_id, contact_id and custom_fields, while name and status remain bare. The description adds partial-update semantics and the read-only identity-field note (email, which is not even a parameter), so it contributes some meaning but does not fully compensate for the undocumented fields.

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

Purpose4/5

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

States a clear verb+resource ('Update a contact') and adds scope via 'Changes the fields you send', making the partial-update nature explicit. It does not, however, name any sibling (e.g. update_lead, get_contact) to differentiate itself in a crowded set of update_* tools.

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

Usage Guidelines2/5

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

There is no when-to-use/when-not guidance and no mention of alternatives among the many update_* siblings. The reader must infer from 'Changes the fields you send' that this is the correct tool for editing an existing contact, but nothing tells them when to reach for update_lead or get_contact instead.

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.

Resources