Skip to main content
Glama

Update agent

update-agent
DestructiveIdempotent

Patch counterparty fields. Only supplied fields are updated. Set is_active=false to deactivate (agents are never deleted — they are reference data referenced by events and transactions). classification_element_id sets the account this counterparty's bank lines are suggested (an empty string clears it), and classification_mode='always_ask' stops suggesting one for a counterparty whose lines go to different accounts; its still-open lines are re-suggested at once. Each entity of a group keeps its own default, on its own chart: classification_entity_id names the one these fields are for, omitted the group parent. A default is also learned as lines are committed, so set one by hand only to correct it.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_id": "agt_01HVF8T0M2YTAY3BBNRH0V0",
      "is_1099_recipient": true
    },
    "name": "update-agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
leiNo
dunsNo
nameNo
emailNo
phoneNo
addressNo
agent_idYesThe agent to update.
is_activeNoToggle activation. Inactive agents are hidden from new-transaction pickers.
legal_nameNo
metadata_patchNoDeep-merged into agent.metadata. Pass `{}` to leave unchanged. The default classification is set with the fields above, not here.
is_1099_recipientNo
classification_modeNo`suggest` offers the default on each line; `always_ask` offers none, for a counterparty whose lines go to different accounts. Omit to keep.
registration_numberNo
classification_entity_idNoThe entity whose bank lines the default above is for. Each entity keeps its own default, on its own chart. Omit for the group parent.
classification_element_idNoThe chart account this counterparty's bank lines are usually classified to, suggested on each new line. An empty string clears it. Its still-open lines are re-suggested at once. Omit to keep.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations cover mutation, idempotency and destructiveness, and the description adds real behavior on top: agents are never deleted (reference data), only supplied fields change, clearing is done with an empty string, and changing classification re-suggests all still-open lines at once — a non-obvious side effect not derivable from the annotations or schema.

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-loads the core patch semantics in the first two sentences, then spends the bulk on the classification behavior, which is the only truly non-obvious part. Dense but every sentence carries information; the run-on final sentence about learned defaults could be tightened.

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 15-parameter mutation with no output schema and low schema coverage, the description covers the risky/confusing parts (deactivation instead of deletion, classification side effects, partial update) adequately. It omits any mention of required agent_id, but that is marked required in the schema, so the gap is minor.

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 only 40% across 15 params, so the description must compensate; it does so for the genuinely ambiguous trio (classification_element_id, classification_mode, classification_entity_id), including the empty-string clear and the entity-vs-group-parent default. The remaining params (lei, duns, email, address, legal_name) are self-describing names and need little elaboration, though metadata_patch/address interaction is left to 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?

Opens with a specific verb and scope: 'Patch counterparty fields. Only supplied fields are updated,' which tells the agent this is a partial-update mutation, distinct from create-agent/get-agent siblings. The only friction is the shift in vocabulary from 'agent' (name/title) to 'counterparty', which the agent must infer is the same resource.

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?

Gives concrete when-to-use routing: set is_active=false to deactivate rather than delete, use classification_mode='always_ask' for counterparties whose lines go to different accounts, and 'set one by hand only to correct it' because defaults are learned from committed lines. No sibling tool is named as an explicit alternative, so it falls short of a 5.

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.