Skip to main content
Glama

Remove Transaction

remove_transaction
DestructiveIdempotent

Remove a transaction by confirming permanent deletion or archiving it to hide from views and reports. Handles transfer legs together to keep balances correct.

Instructions

Remove a transaction by archiving (hides from views and reports, recoverable) or permanently deleting (reverses the balance effect). On first call, returns a conflict with confirm / archive / cancel. If the transaction is one leg of a transfer, confirming the deletion removes both legs together to keep the books balanced.

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": {
      "transaction_id": "<transaction_id>"
    },
    "name": "remove_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDeprecated: use `resolution`. 'archive' / 'delete' / 'cancel'.
force_modeNoDeprecated: confirming a transfer-leg deletion now deletes both legs automatically. 'delete_both' is still accepted.
resolutionNoResolution after the removal conflict: 'confirm' deletes (recoverable for 30 days), 'archive' hides it (recoverable), 'cancel' aborts.
transaction_idYesUUID of the transaction to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=true. The description adds valuable behavior beyond that: archive hides but is recoverable, delete reverses the balance effect, the first call returns a conflict, and confirming a transfer-leg deletion removes both legs. It is slightly imprecise by calling deletion permanent without noting the schema's 30-day recoverability.

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 three tightly packed sentences with no wasted wording. The key distinction between archive and delete is front-loaded, followed by the conflict flow and transfer edge case.

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 financial transaction tool with conflict resolution and transfer coupling, the description covers the essential invocation behavior and the most important edge case. It omits access requirements and explicit recovery alternatives, but annotations and schema already carry some of that burden.

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 all parameters including the deprecated mode and force_mode fields. The description adds workflow context around resolution, but it does not add parameter-specific meaning beyond what the schema provides, so a baseline 3 is appropriate.

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 states a specific verb and resource ('Remove a transaction') and clearly distinguishes the two removal modes: archive versus delete. It also explains the conflict workflow and transfer-leg behavior, so an agent can understand the operation without opening the schema.

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 usage context for choosing archive versus delete and explains the confirm/archive/cancel resolution flow. However, it does not explicitly name alternatives such as restore_item or list_deleted for recovery, nor does it state when not to use this tool.

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