Skip to main content
Glama

Update a contact

update_contact
DestructiveIdempotent

Changes one saved contact on this seat. contact_id is that contact. Set name, phone_numbers, emails, or any of them. A field left out stays as it is. A list replaces the saved list. The group chat name stays as it is.

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": {
      "contact_id": "<contact_id>"
    },
    "name": "update_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew contact name. Leave this out to keep the saved name.
emailsNoSaved email addresses. Each item is an address, or an object with address and an optional type. This list replaces the saved addresses.
contact_idYesSaved contact id.
phone_numbersNoSaved numbers. Each item is a number, or an object with number and an optional type such as mobile, home, or work. This list replaces the saved numbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description earns credit by explaining exactly what the destruction consists of: 'A list replaces the saved list' while omitted fields are preserved. The note that the group chat name is untouched is useful boundary context. It doesn't cover failure behavior for an unknown contact_id.

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?

Short and front-loaded: identity of the tool, then the field rules. Sentences are terse and purposeful. The trailing line about the group chat name is slightly cryptic out of context, but it is one clause and not damaging.

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

Completeness4/5

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

For a 4-parameter mutation with full schema coverage and no output schema, the description covers the essential mutation semantics (partial update, list replacement, unspecified fields untouched). Remaining gaps — error behavior for a missing contact and permission requirements — are modest.

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?

Schema description coverage is 100%, so the schema already documents contact_id, name, emails, and phone_numbers, including the replacement behavior. The description restates the replace/keep semantics rather than adding new detail such as accepted formats or limits, so baseline 3 applies.

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 specific verb and resource with scope: 'Changes one saved contact on this seat.' That distinguishes it from create_contact and search_contacts by implication (one existing contact, not a list or a new record). It doesn't explicitly name a sibling, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is implied through the partial-update semantics ('A field left out stays as it is'), which tells an agent this is the right tool for edits. But there is no explicit when-to-use or when-not guidance, and no pointer to create_contact for new records or search_contacts for finding the contact_id.

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.