Skip to main content
Glama

Edit transaction

wave_update_transaction
DestructiveIdempotent

Edit an existing Wave transaction's date, amount, category, account, vendor/customer, notes, reviewed status, or split lines; journal entries keep debits equal to credits.

Instructions

Edit a transaction as in the Wave web app: date, description, notes, reviewed (verified), bank/card account, total amount, category, vendor or customer, or the full set of split lines. Journal entries (journalEntry: true) have no bank side: edit their lines, keeping debits equal to credits. Single-category transactions: use categoryId / vendorId / customerId / amount / salesTax directly. Split transactions: pass lines (every line to keep, with order from wave_get_transaction; omit order to add a line; lines left out are removed). Line amounts include sales tax and must add up to the amount. Reads the transaction first and sends its current sequence, so it never overwrites a newer edit. dryRun=true shows the change without saving. Confirm with the user before changing amounts or accounts. Uses Wave's web-app API (unofficial), which needs a web session: if it is missing or expired, the user runs node /app/bin/wave-mcp.js login in a terminal on 1c94a9392181.

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": "wave_update_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTransaction ID
dateNoDate, YYYY-MM-DD
linesNo
notesNoNotes; empty string clears them
amountNoNew total; for split transactions also pass lines
dryRunNo
salesTaxNoReplace the sales taxes on this line ([] removes them). Line amounts include tax. Omitted: unchanged; Wave recalculates taxes it calculated itself when the amount changes, but keeps manually set ones
vendorIdNoVendor ID; null clears it
verifiedNoMark as reviewed (true) or not reviewed (false)
accountIdNoMove it to another bank/card account
businessIdNoBusiness ID; defaults to the one wave_get_context reports
categoryIdNoNew category account (single-category transactions)
customerIdNoCustomer ID; null clears it
descriptionNo
lineDescriptionNoDescription on the category line (single-category transactions)
expectedSequenceNoFail instead of editing if the transaction changed since you read it (sequence from wave_get_transaction)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds materially new behavior: it reads the transaction first and sends its current sequence so it never clobbers a newer edit, it previews with dryRun=true without saving, and it discloses the auth model (unofficial web-app API requiring a web session, with the exact login command and host to run it on). That is real operational context an agent cannot get from annotations.

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-loaded with purpose, then modes, then safety, then auth — a sensible ordering, and almost every clause carries load. It is a dense single block for a 16-parameter destructive tool; breaking the mode routing and the auth note into short lines would improve scanability, but there is little filler to cut.

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 destructive, open-world, 16-parameter mutation with no output schema, the description covers the hard parts: which path to take, how lines reconcile, concurrency protection, and the session prerequisite. The main remaining gap is what a successful call returns (updated transaction? sequence?), which the absence of an output schema pushes onto the description.

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 already 81%, so baseline is 3, and the description goes beyond it by explaining lines semantics that the schema does not: every line to keep must be passed, omitted lines are removed, omitting order adds a line, and line amounts include sales tax and must sum to the total. It also explains the mode split between top-level single-category fields and the lines array, though it does not touch businessId or expectedSequence (the latter being effectively described by the read-then-send-sequence sentence).

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?

Opens with a specific verb and resource ("Edit a transaction") and immediately enumerates the editable surface: date, description, notes, reviewed, bank/card account, total amount, category, vendor/customer, split lines. It also carves out a distinct sub-resource (journal entries) and distinguishes the single-category vs. split editing paths, so an agent can tell how this differs from wave_create_transaction / wave_delete_transaction without opening schemas.

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?

Gives explicit routing conditions: single-category transactions use categoryId/vendorId/customerId/amount/salesTax directly, split transactions pass lines, journal entries edit lines with debits equal to credits. It names the companion call needed to obtain line order (wave_get_transaction), states a dryRun preview discipline, and adds a human-in-the-loop rule (confirm before changing amounts or accounts).

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

Deploy Server

Other Tools