Skip to main content
Glama

update_contact

DestructiveIdempotent

Update a contact's profile fields and/or contact-variable values. Requires the manage_broadcasts permission. Only the fields you pass are changed — omitted fields keep their current value — so the call is idempotent. The variables map takes variable NAMES (or full folder paths when a name is ambiguous), not ids; an unknown name fails with 422 before anything is written. Variable writes propagate to the live bot immediately (the runtime's cached values are invalidated). Setting status to "unsubscribed" stops broadcasts, sequences and direct sends for the contact. Setting it back to "subscribed" works only when a person on the team unsubscribed them; a contact who blocked the bot or used an unsubscribe link is refused with 409 and comes back only by writing to the bot again.

Input Schema

NameRequiredDescriptionDefault
emailNoNew email. Omit to leave unchanged; empty string clears it.
phoneNoNew phone. Omit to leave unchanged; empty string clears it.
statusNoNew subscription status ("subscribed" or "unsubscribed"). Omit to leave unchanged.
lastNameNoNew last name. Omit to leave unchanged; empty string clears it.
usernameNoNew platform username. Omit to leave unchanged; empty string clears it.
contactIdYesRequired. Contact id, as returned by list_contacts.
firstNameNoNew first name. Omit to leave unchanged; empty string clears it.
variablesNoContact variable values to set, as { "variableName": "value" }. Keys are variable NAMES or full folder paths (not ids). Only the listed variables change.
applicationIdNoApplication (workspace) id. Optional: an application-scoped key (app_...) defaults to its own application, but a personal key (usr_...) has no default and omitting it fails with MCP_APPLICATION_REQUIRED. Call list_applications to get the id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, yet the description adds substantial context beyond them: the 422 pre-write validation on unknown variable names, immediate propagation to the live bot with cache invalidation, and the 409 refusal on resubscribing a contact who blocked the bot. This is exactly the kind of behavioral detail an agent needs before invoking a mutation.

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 permission requirement, then ordered by importance: partial-update contract, variable semantics, propagation, status edge cases. Dense and mostly waste-free, though the status paragraph is long enough that it could be tightened slightly.

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 9-parameter mutation with a nested variables object and no output schema, the description covers permissions, idempotency, validation failures, propagation timing, and status edge cases. Nothing material needed to call it correctly is 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 the baseline is 3; the description goes further by clarifying that variables keys are NAMES or full folder paths rather than ids, and that ambiguity/unknown names fail with 422. Status semantics are also explained beyond the enum values.

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?

Names a specific verb and resource (update a contact's profile fields and contact-variable values), which cleanly separates it from create_contact, get_contact and list_contacts in the sibling set. The scope of what can be changed is stated up front in the first sentence.

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?

Explains the partial-update contract ('only the fields you pass are changed'), the permission gate (manage_broadcasts), and precisely when status transitions succeed or fail. It does not explicitly name a sibling alternative, but for an update tool the when-to-use case is unambiguous.

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.