Skip to main content
Glama

Update transaction

update_transaction
DestructiveIdempotent

Fix a logged record: wrong category, amount, merchant, date, account, personal/business scope, or type. type=transfer + counter_account converts a mislogged row into a transfer between own accounts (e.g. a cash withdrawal into a transfer to Cash). counter_transaction_id instead GLUES TWO EXISTING rows (one expense + one income on different own accounts) into ONE transfer - use it when a currency exchange, own-account top-up, or cash withdrawal produced two separate rows. Category fixes on rows with a merchant are remembered: future bank syncs of that merchant reuse your category.

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_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
dateNoDate as YYYY-MM-DD. Omit for today.
noteNo
typeNoConvert the record's type. transfer additionally needs counter_account.
amountNo
entityNo
accountNoMove the row to this own account (see get_accounts).
categoryNo
currencyNo3-letter ISO currency code (EUR, USD, UAH, AED, ...). Omit to use the user's base currency.
merchantNo
counter_accountNoThe OTHER own account of a transfer (for an expense row: where the money went, e.g. Cash). With type=transfer it converts the row; on an existing transfer it re-points the destination.
counter_transaction_idNoMerge ANOTHER existing row into this one as the second leg of a transfer between own accounts. One row must be an expense, the other an income, on different accounts (any currencies). The other row is absorbed: its account/amount/currency become the counter leg and its bank reference is preserved, so re-syncs and re-imports do not duplicate it.

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 already declare destructive=true and idempotent=true, but the description discloses non-obvious consequences the annotations cannot convey: the merged row is absorbed, its account/amount/currency become the counter leg, and its bank reference is preserved so re-syncs and re-imports do not duplicate it. It also reveals a persistent side effect — category fixes on merchant rows are remembered and reused by future bank syncs — which is exactly the kind of hidden behavior an agent needs before invoking.

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 purpose in the first sentence and then devotes the remaining text to the two transfer mechanisms and the category-memory side effect. It is dense — long em-dash clauses and capitalized emphasis — but nearly every clause carries operational meaning. The illustrative parenthetical about cash withdrawal is borderline but aids the mental model.

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 12-parameter mutation tool with no output schema and destructive semantics, the description covers the genuinely hard parts: transfer conversion vs. row merging and the persistence of category fixes. It does not address whether unspecified fields are left untouched, what happens on invalid combinations (e.g. counter_transaction_id plus a type mismatch), or error behavior — minor gaps given the schema handles field-level validation.

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 description coverage is 50%, and the description compensates well for the most consequential parameters: it explains the required pairing of type=transfer with counter_account, pins down counter_account as 'the OTHER own account', and contrasts it with counter_transaction_id as a merge of two existing rows. Less is added for the simple fields (note, merchant, amount), though the opening sentence does enumerate which of them are fixable.

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 resource ('Fix a logged record') and enumerates exactly which fields can be corrected (category, amount, merchant, date, account, scope, type), which maps directly to the schema. It does not name sibling tools such as categorize or log_transfer, so the boundary with those alternatives is left implicit.

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 explicit, actionable branching: use type=transfer + counter_account to convert a single mislogged row, but use counter_transaction_id when a currency exchange, own-account top-up, or cash withdrawal produced two separate rows. The two mechanisms and their triggering scenarios are clearly separated. It stops short of saying when to prefer a different tool entirely (e.g. a category-only sibling) or when not to update.

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.