Skip to main content
Glama

Delete transaction

wave_delete_transaction
DestructiveIdempotent

Deletes a transaction from Wave's books and adjusts account balances; confirm with the user before removal because it changes accounting data.

Instructions

Delete a transaction, as the web app's Delete does. Changes the books and account balances: confirm with the user first. Wave refuses for transactions that must be removed at their source (e.g. invoice payments, payroll). 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_delete_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
businessIdNoBusiness ID; defaults to the one wave_get_context reports
expectedSequenceNoFail if the transaction changed since you read it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description goes well beyond them: it names the concrete side effect (changes the books and account balances), the confirmation requirement, the server-side refusal cases, and the auth prerequisite including the exact recovery command and host. For a destructive mutation, that is the full set of things an agent needs to know 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-loaded with the action, then side effects, then guardrails, then the auth recovery path — a sensible ordering for a destructive tool. The semicolon-chained single sentence is dense but every clause carries operational weight; nothing is filler.

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, auth-gated mutation with no output schema, the description covers impact, confirmation, refusal modes, and login recovery. The only omission is what a successful call returns or how failures surface to the agent, which is minor since the tool has no output schema to explain.

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 coverage is 67%, and the schema itself documents the two non-obvious fields (businessId defaulting to wave_get_context, and expectedSequence for optimistic concurrency). The description adds nothing about any parameter, so the schema carries the full burden. Baseline 3 is appropriate given the schema covers the ambiguous fields, though 'expectedSequence' would benefit from the description warning about failure behavior.

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 ('Delete a transaction') and adds a behavioral anchor ('as the web app's Delete does'), which tells the agent this is a hard delete, not an archive or void. It doesn't name the sibling tools (wave_update_transaction, wave_get_transaction) explicitly, but the verb makes the distinction obvious.

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 a clear precondition ('confirm with the user first') and an explicit when-not: Wave refuses for transactions that must be removed at their source, e.g. invoice payments and payroll. That is a real routing/exclusion rule an agent can act on before calling. It stops short of naming sibling tools as alternatives for those cases, which keeps it at 4.

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