Skip to main content
Glama

Update contact

update_contact
DestructiveIdempotent

Atualiza os dados cadastrais de um contato: nome, e-mail, empresa, CPF/CNPJ, telefone, origem ou observações. Use update_contact_status para alterar status/pipeline/dealValue.

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
nameNoNovo nome completo (opcional)
emailNoNovo e-mail (opcional)
notesNoObservações internas sobre o contato (substitui o campo notes, não o histórico de notas)
phoneNoNovo telefone com código do país, ex: 5511999999999 (opcional)
sourceNoOrigem do contato, ex: whatsapp, linkedin, evento (opcional)
companyNoEmpresa do contato (opcional)
documentNoCPF (pessoa física, 11 dígitos) ou CNPJ (empresa, 14 dígitos), com ou sem pontuação (opcional; string vazia apaga). Vai para o cadastro que o agente mostra ao cliente no WhatsApp para confirmar.
contact_idYesID do contato a atualizar

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, so the safety profile is carried by structured data. The description adds nothing about the destructive nature — it does not say that supplied values overwrite what is there (the 'notes substitui o campo notes' nuance lives in the schema, not here) or that omitted fields are left untouched. A partial-update tool with destructiveHint deserves one sentence on overwrite semantics; that is missing.

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

Conciseness5/5

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

Two sentences, zero filler: the scope statement comes first, the sibling routing second. Nothing is buried and nothing repeats the schema.

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 an 8-parameter mutation tool with no output schema, the definition covers purpose and alternative-selection well, but leaves the agent without a mental model of partial-update behavior — what happens to fields not supplied, and whether this can silently overwrite the client-facing cadastro. Given destructiveHint=true, that gap matters more than in a read tool.

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%, and the schema already covers the parts the description omits: phone format with country code, CPF 11 digits vs CNPJ 14 digits, empty string erasing the document. The description's field list adds little beyond what the schema already says, so the baseline 3 applies.

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?

The description names a specific verb and resource ('Atualiza os dados cadastrais de um contato') and enumerates exactly which fields are touched (nome, e-mail, empresa, CPF/CNPJ, telefone, origem, observações). It also explicitly excludes status/pipeline/dealValue, which is the main ambiguity against its closest sibling, update_contact_status.

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 gives an explicit routing rule: use update_contact_status for status/pipeline/dealValue. That is exactly the kind of alternative-naming guidance that prevents mis-invocation. It stops short of addressing other adjacent tools (e.g. link_contact_company for the company association, or add_contact_tag), so it is clear but not exhaustive.

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