Skip to main content
Glama
LamPyrid
by RadCod3

Update Transaction

update_transaction

Modify transaction amounts, descriptions, dates, accounts, categories, and tags to correct imported data or complete missing information.

Instructions

Modify transaction details such as amounts, descriptions, dates, accounts, etc.

Useful for correcting imported data or updating incomplete information.

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": {
      "req": "<req>"
    },
    "name": "update_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesUpdate an existing transaction.

Output Schema

NameRequiredDescriptionDefault
idNoTransaction ID
dateNoDate and time of the transaction
tagsNoCross-cutting labels grouping transactions across budgets/categories/time (e.g. a trip name, a project, a tax year). Multiple allowed.
typeYesType of the transaction
amountYesAmount of the transaction
budget_idNoID of the budget for this transaction
source_idNoID of the source account. For withdrawal/transfer, must be asset account. For deposits, must be revenue account.
budget_nameNoName of the budget for this transaction
category_idNoID of the category for this transaction
descriptionYesDescription of the transaction
source_nameNoSource account name
category_nameNoFiner-grained classification of the transaction (e.g. "vegetables", "personal hygiene"). One per transaction; complements the budget.
currency_codeNoCurrency code
destination_idNoID of the destination account. For deposit/transfer, must be asset account. For withdrawals, must be expense account.
destination_nameNoDestination account name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive mutation that is not idempotent. The description adds only the rationale for use; it does not disclose the critical partial-update semantics (fields left null/omitted stay unchanged) or that tags are wholly replaced, both of which live only in the 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?

Two short sentences, front-loaded with what changes and followed by a use case; nothing is padded. It is efficient, though the second sentence could have been spent on distinguishing behavior rather than motivation.

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?

An output schema exists and annotations cover the safety profile, so no return-value explanation is needed. However, for a multi-field partial-update mutation with a nested request object, the description omits the partial-update contract and the single-vs-bulk distinction, leaving recognizable gaps.

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 nested req object documents each field, including tag replacement and category_id overruling category_name. The description's field list ('amounts, descriptions, dates, accounts') merely echoes a subset of those parameters and adds no format or interaction detail 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?

States a specific verb and resource ('Modify transaction details') and enumerates the kinds of fields that can change (amounts, descriptions, dates, accounts). It is clear on its own but does not distinguish itself from the sibling bulk_update_transactions, which an agent could easily confuse it with.

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?

'Useful for correcting imported data or updating incomplete information' gives a use context, but there is no when-not guidance and no routing to bulk_update_transactions or delete_transaction. The agent must infer the single-vs-bulk boundary from the sibling name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.