Skip to main content
Glama

Update customer

update_customer
DestructiveIdempotent

Changes the fields of a customer of a company. Only the given fields change; a nested object (address, electronic_address, contact) changes only its given keys. Open documents of the customer keep their other customer data (sync_drafts_from_customer copies it to them); a changed electronic_address is written to them at once.

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": {
      "company_id": "<company_id>",
      "customer_id": "<customer_id>"
    },
    "name": "update_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe name of the customer as printed on documents (one line).
typeNoLEGAL for a company, NATURAL for a person.
notesNoNotes about the customer; null clears them.
vat_idNoThe VAT ID with its country prefix, e.g. DE123456789; it must be registered in the EU VIES database (checked on save); null clears it.
addressNoThe address of the customer; only the given keys change, null removes it.
contactNoThe contact data of the customer; only the given keys change, null removes it.
company_idYesThe id of the company, from list_companies.
tax_numberNoThe tax number of the customer, digits only; null clears it.
customer_idYesThe id of the customer, from list_customers.
payment_termsNoThe payment terms printed on the documents of the customer; null clears them.
buyer_referenceNoThe buyer reference required by the customer on e-invoices (one line); null clears it.
electronic_addressNoThe electronic address where the customer receives e-invoices (Peppol / KSeF); only the given keys change, null removes it.
registration_numberNoThe company registration number, digits only; null clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/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 covered. The description goes beyond that by disclosing the merge semantics for nested objects and the cross-entity side effect that open documents retain their other customer data while a changed electronic_address is written to them immediately — real behavioral context an agent could not infer from annotations.

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 sentences, front-loaded with the core mutation semantics before the edge cases. The parenthetical about sync_drafts_from_customer is slightly compressed and takes a moment to parse, but no sentence is wasted.

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 13-parameter mutation tool with no output schema, the description covers the essential behavioral contract: partial update, nested-key merging, and document synchronization. It leaves the return value and error/validation behavior unstated, which is a minor gap given that validation rules are already documented in the schema.

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%, including per-field notes such as VIES validation and 'null clears it', so the baseline is 3. The description's nested-key merge note largely restates what the schema already says for address, electronic_address, and contact, adding little field-level meaning beyond the schema.

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 opens with a specific verb and resource — 'Changes the fields of a customer of a company' — which tells an agent exactly what is mutated. Sibling differentiation is only partial: sync_drafts_from_customer is named, but only to describe a side effect rather than to route the agent between create_customer, update_customer, and update_bank_account.

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?

The partial-update contract ('Only the given fields change') implies when this tool is appropriate — modifying an existing customer without supplying every field — but there is no explicit when-to-use or when-not guidance, and no pointer to create_customer or update_bank_account for adjacent operations.

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