Skip to main content
Glama
Beankeeper

Beankeeper

Official

txn_reverse

Reverse posted transactions by creating a linked mirror posting; direct grants apply immediately, propose-only grants return a pending approval proposal. Reuse an explicit reference for safe retries.

Instructions

Reverse a posted transaction with a linked mirror posting. Direct grants apply the reversal immediately. Propose-only grants return a pending proposal for an approver. Use the same explicit reference to retry a reversal. Existing clearings stay on the original, and fully or partially reconciled transactions are ineligible.

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": {
      "company": "<company>",
      "id": "<id>"
    },
    "name": "txn_reverse"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
dateNoYYYY-MM-DD, on or after the original transaction date; defaults to today.
companyYes
referenceNoPass the same explicit reference for safe retries.
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With only readOnlyHint=false supplied, the description carries the load well: it discloses the mirror posting created, the dual outcome (immediate vs pending proposal), idempotent retry semantics, and that clearings stay on the original. These are exactly the behavioral facts annotations do not provide.

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?

Four short sentences, no filler, with the core action and its side effect front-loaded before the grant and eligibility caveats. Dense but readable.

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 five-parameter mutation tool with no output schema and minimal annotations, it covers outcomes, idempotency, and eligibility well. Minor gaps remain around the optional date/description parameters and what the pending proposal response looks like.

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 only 40%, and the description only adds meaning for 'reference' (retry the same explicit reference), which the schema already states. The date, company, and description parameters receive no clarification in either place, so it does not compensate for the coverage gap.

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?

States a specific verb and resource ('Reverse a posted transaction') plus the side effect ('with a linked mirror posting'). This distinguishes it cleanly from txn_post, txn_reconcile, and txn_link without needing to open their schemas.

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 concrete conditions: direct grants apply immediately, propose-only grants route to an approver, and fully or partially reconciled transactions are ineligible. It does not name an alternative sibling (e.g. txn_reject or txn_proposals) for the rejected-eligibility case, which keeps it short of a 5.

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