Skip to main content
Glama
ninetails-io

gnucash-mcp

delete_transaction

Delete one or more GnuCash transactions by GUID in a single all-or-nothing batch. Safeguards block reconciled-split and invoice-posting deletions unless explicitly overridden.

Instructions

Delete one transaction by GUID — or several in one call.

Safeguards prevent deletion if a transaction has reconciled splits (force=true overrides) or is an invoice's posting record (unpost_invoice first).

Pass a LIST of GUIDs to delete several in one book open / one save. The batch is all-or-nothing: every guid is validated before anything is deleted, so a bad guid rejects the whole call with nothing removed. Response for a list is {status, count, transactions: [{guid, description}]}; a single guid returns the single-object shape as before.

Args: guid: Transaction GUID (32-char hex or 8+ char prefix), or a list of them. force: Allow deleting transactions with reconciled splits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guidYes
forceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does significantly well: it explains the all-or-nothing batch behavior, the force override for reconciled splits, the invoice-posting-record safeguard, and the response format for both single and list calls. It does not explicitly state it's destructive (though implied), but the safeguards and response shape give substantial behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is tightly packed with substantive content — purpose, safeguards, batch semantics, response shape, and args. Every sentence earns its place. The args section cleanly mirrors the schema. No filler or redundancy.

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?

Despite having an output schema, the description still describes the response shape precisely for both single and list invocations, which is valuable since the shapes differ between modes. It addresses the complexity of batch all-or-nothing behavior, safeguards, and the force flag, covering the important edge cases. The description is essentially complete for this tool's complexity.

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 0%, so the description must compensate. It does: 'guid' is explained as a Transaction GUID (32-char hex or 8+ char prefix) or a list; 'force' is explained as allowing deletion with reconciled splits. It also adds return-shape semantics. It doesn't go beyond the schema in terms of edge-case validation details, but the coverage it provides is solid given zero schema descriptions.

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 description clearly states 'Delete one transaction by GUID — or several in one call' with a specific verb+resource. It distinguishes itself from the sibling tools like void_transaction (which voids rather than deletes), delete_account, and delete_invoice by making the target scope precise. The description explicitly notes it deletes transactions, which differentiates it from the many other delete_* sibling tools.

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?

The description gives explicit when-to-use guidance including safeguards: it explains that deletion is prevented for transactions with reconciled splits (with force=true override) and that invoice posting records require unpost_invoice first. It also explains the batch behavior (list of GUIDs, all-or-nothing semantics). This is strong usage guidance, including exclusions and prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ninetails-io/gnucash-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server