Skip to main content
Glama
MCP Actual

MCP Actual

by cubicecho

Update a transaction

update_transaction
DestructiveIdempotent

Modify a transaction’s category, payee, notes, date, amount, or cleared status; only supplied fields change, and null clears category, payee, or note.

Instructions

Change a transaction’s category, payee, notes, cleared flag, date, or amount. Only the fields you pass are touched; pass null to clear a category, payee, or note. Amounts are integer cents. Returns the transaction as stored afterwards — rules may rewrite a value on write, so trust the response over the request. The main tool for recategorizing during cleanup.

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
idYesId of the transaction to change.
dateNoNew date.
notesNoNew note text, or null to clear it.
amountNoNew amount in cents; negative is an outflow.
clearedNoMark cleared or uncleared.
payeeIdNoNew payee id, or null to clear it.
categoryIdNoNew category id, or null to clear it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.1.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / amount / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / amount / minimum
      Added value: +-9007199254740991
    • changedInput schema / properties / payeeId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/categoryId/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "minLength": 1,
      +    "pattern": "^[A-Za-z0-9_-]+$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observedv1.0.1

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=true), the description discloses two behaviors the annotations cannot: patching is sparse rather than a full replace, and null explicitly clears category/payee/note. It also warns that server-side rules may rewrite values on write and tells the agent to trust the response over the request, plus describes the return value even though no output schema exists.

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 mutable fields, then the patch/clear semantics, then the write-rewrite caveat and the usage framing. Every sentence carries information, though the closing 'main tool' sentence could have been merged with the first for tighter structure.

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?

For a 7-parameter mutation tool, the definition covers the operation, sparse-update and null-clearing semantics, the units of the amount, and the return/post-write behavior. With annotations supplying the safety profile and the schema covering all parameters, nothing an agent needs to invoke this correctly is missing.

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%, so the schema already documents each field, including the null-to-clear semantics and the integer-cents amount. The description restates these (cents, null-clearing) without adding format or constraint detail beyond the schema, so the baseline of 3 applies.

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 first sentence names a specific verb ('Change') and resource ('a transaction') and enumerates the mutable fields, so an agent knows exactly what this tool edits. The closing sentence adds a concrete role ('The main tool for recategorizing during cleanup') that separates it from sibling tools like search_transactions or set_budget_amount.

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?

The description gives clear when-to-use context ('the main tool for recategorizing during cleanup') and clarifies the patch semantics ('Only the fields you pass are touched'), which tells an agent when a partial update is appropriate. It stops short of naming a specific alternative or exclusion (e.g., when to prefer create_rule or apply_rule_actions over manual edits), so it does not reach a 5.

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