Skip to main content
Glama

Update contact

update_contact
Destructive

Update fields on a contact by id. Provide a patch with at least one field. Use search_contacts first to find the contact id. The result echoes the operating workspace.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe contact id returned by search_contacts.
patchYesThe contact fields to update; include at least one changed field.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / patch / properties / documentRole
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "signatory",
      +        "accountant",
      +        "manager",
      +        "other"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The contact's role on sales documents. Optional."
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / patch / properties / email / anyOf
      Previous value: -[
      -  {
      -    "description": "The contact's email address.",
      -    "format": "email",
      -    "maxLength": 255,
      -    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The contact's email address.",
      +    "format": "email",
      +    "maxLength": 255,
      +    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed8 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"The contact id returned by the matching search/list tool."New value: +"The contact id returned by search_contacts."
    • addedInput schema / properties / patch / properties / companyId / description
      Added value: +"Company id to link this contact to (from search_companies). Optional."
    • addedInput schema / properties / patch / properties / email / description
      Added value: +"The contact's email address. Optional."
    • addedInput schema / properties / patch / properties / jobTitle / description
      Added value: +"The contact's job title. Optional."
    • addedInput schema / properties / patch / properties / lastName / description
      Added value: +"The contact's last name. Optional."
    • addedInput schema / properties / patch / properties / ownerId / description
      Added value: +"User id of the workspace member who owns this contact. Optional."
    • addedInput schema / properties / patch / properties / phone / description
      Added value: +"The contact's phone number. Optional."
    • changedInput schema / properties / patch / properties / tags / description
      Previous value: -"Tags for segmentation (replaces the existing set)."New value: +"Tags for segmentation. Optional."
  5. Changed8 schema fields changed
    • changedInput schema / properties / patch / properties / companyId / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Company id to link this contact to (from search_companies).",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / patch / properties / email / anyOf
      Previous value: -[
      -  {
      -    "format": "email",
      -    "maxLength": 255,
      -    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The contact's email address.",
      +    "format": "email",
      +    "maxLength": 255,
      +    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / patch / properties / firstName / description
      Added value: +"The contact's first name."
    • changedInput schema / properties / patch / properties / jobTitle / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 160,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The contact's job title.",
      +    "maxLength": 160,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / patch / properties / lastName / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 120,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The contact's last name.",
      +    "maxLength": 120,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / patch / properties / ownerId / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "User id of the workspace member who owns this contact.",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / patch / properties / phone / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 50,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The contact's phone number.",
      +    "maxLength": 50,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / patch / properties / tags / description
      Added value: +"Tags for segmentation (replaces the existing set)."
  6. Changed2 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"The contact id returned by the matching search/list tool."
    • addedInput schema / properties / patch / description
      Added value: +"The contact fields to update; include at least one changed field."
  7. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is known. The description adds a validation constraint ('patch with at least one field') and a return note ('The result echoes the operating workspace'), which is useful but modest. It does not explain what gets destroyed, whether null clears fields, or auth requirements.

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?

Three short sentences, front-loaded with the core action. Every sentence contributes something (action, constraint, prerequisite, return note). The final sentence is slightly vague but still earns its place for return behavior.

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 destructive update tool with a rich nested schema and annotations covering safety, the description supplies the key prerequisite and a return hint. It omits partial-update semantics and null-clearing behavior, but with 100% schema coverage and strong annotations, it is mostly complete.

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 fully documents both id and patch fields. The description restates the patch requirement ('at least one field') but adds no new meaning, such as how null values behave or whether the patch is a merge versus replace. Baseline 3 is appropriate.

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?

The description gives a specific verb and resource ('Update fields on a contact by id') and implicitly distinguishes the tool from read-oriented siblings like get_contact and search_contacts by saying to use search_contacts first. It does not explicitly differentiate from other update tools such as update_company or update_lead, so it falls short of the highest bar.

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?

It provides a clear prerequisite: 'Use search_contacts first to find the contact id.' This is explicit context for correct invocation. However, it offers no when-not guidance or alternatives to this tool (e.g., when to use update_company instead), so it misses the top score.

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