Skip to main content
Glama

Atualizar conta

update_account
Idempotent

Atualiza campos de uma conta existente (parcial — campo omitido/vazio mantém o valor atual). Tanto o dono (OWNER) quanto membros (MEMBER) de uma conta conjunta podem chamar esta tool; para excluir a conta, porém, só o dono pode (veja delete_account). Editar balance aqui sobrescreve o saldo diretamente, sem relação com o histórico de transações — não é o mesmo que registrar uma transação de ajuste.

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>"
    },
    "name": "update_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID da conta a atualizar
nameNoNovo nome da conta
typeNoCHECKING, SAVINGS, WALLET ou INVESTMENT
colorNoCor hex para exibição, ex: #3B82F6
balanceNoSobrescreve o saldo diretamente (não é uma transação — não afeta fatura de cartão nem histórico)
bankCodeNoCódigo do banco
currencyNoMoeda ISO 4217
balanceDateNoData ISO de referência do saldo informado em `balance`

Output Schema

NameRequiredDescriptionDefault
idNo
nameNo
typeNo
colorNo
userIdNo
balanceNo
bankCodeNo
currencyNo
createdAtNo
updatedAtNo
balanceDateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / bankCode / description
      Added value: +"Código do banco"
    • addedInput schema / properties / name / description
      Added value: +"Novo nome da conta"
  2. Changed6 schema fields changed
    • addedInput schema / properties / balance / description
      Added value: +"Sobrescreve o saldo diretamente (não é uma transação — não afeta fatura de cartão nem histórico)"
    • addedInput schema / properties / balanceDate
      Added value: +{
      +  "description": "Data ISO de referência do saldo informado em `balance`",
      +  "type": "string"
      +}
    • addedInput schema / properties / color
      Added value: +{
      +  "description": "Cor hex para exibição, ex: #3B82F6",
      +  "type": "string"
      +}
    • addedInput schema / properties / currency / description
      Added value: +"Moeda ISO 4217"
    • changedInput schema / properties / id / description
      Previous value: -"ID da conta"New value: +"ID da conta a atualizar"
    • addedInput schema / properties / type / description
      Added value: +"CHECKING, SAVINGS, WALLET ou INVESTMENT"
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only carry generic hints (readOnlyHint=false, idempotentHint=true, destructiveHint=false). The description discloses what those hints cannot: the partial-update behavior (omitted/empty fields retain their values), the joint-account permission model, and the side-effect profile of writing balance (direct overwrite with no effect on invoice or transaction history). No contradiction with any annotation.

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?

Three dense sentences, each carrying distinct information: the core update contract, the permission/deletion caveat, and the balance warning. The core purpose is front-loaded, and there is zero filler or restatement of schema content.

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

Completeness5/5

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

With an output schema present (return values covered) and annotations covering the safety/idempotency profile, the description supplies the remaining invocation-critical facts: who has permission, what partial updates do, and how balance behaves. Nothing an agent needs to call update_account correctly is missing.

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 100%, so the baseline is 3. The description adds value beyond the schema by establishing the cross-cutting partial-update rule that applies to all 7 optional parameters (omitted means unchanged), and by flagging balance as the semantically dangerous parameter. The schema describes each field individually, but the tool-level description clarifies the omission contract and the balance pitfall at the right abstraction level.

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 states a specific verb+resource — 'Atualiza campos de uma conta existente' (updates fields of an existing account) — with the crucial partial-update contract added. Combined with the sibling set containing create_account/delete_account and many update_* tools, the phrase 'conta existente' and the explicit pointer to delete_account clearly distinguish this tool from its siblings.

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

Usage Guidelines5/5

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

The description explicitly states who may call it ('Tanto o dono (OWNER) quanto membros (MEMBER) de uma conta conjunta podem chamar'), carves out an exclusion with the alternative named ('para excluir a conta, porém, só o dono pode (veja delete_account)'), and warns that editing balance 'não é o mesmo que registrar uma transação de ajuste', routing the agent away from this tool when a transaction adjustment is intended. Full when/when-not guidance.

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.