Skip to main content
Glama
Beankeeper

Beankeeper

Official

txn_clear

Clears or reconciles ledger entries by transaction/entry IDs, reference, or an atomic batch, queuing exact changes in approval mode. Signed major-unit amounts mark withdrawals or deposits.

Instructions

Clear or reconcile entries by transaction and entry IDs, reference and account, or an atomic in-memory batch. Approval mode queues the exact changes. Amounts use major-unit strings. Use a minus sign for withdrawals (credit), an explicit plus for deposits (debit), or an unsigned amount for either side.

Input Schema

NameRequiredDescriptionDefault
targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.0
    • addedInput schema / properties
      Added value: +{
      +  "target": {
      +    "enum": [
      +      "entry",
      +      "reference",
      +      "batch"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / required
      Added value: +[
      +  "target"
      +]
  2. First observedv1.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=false, so the description carries the behavioral burden and does add real value: it discloses that approval mode queues rather than immediately applies the changes, and that the batch mode is applied atomically in memory. It does not describe what the status field does to an entry, whether already-cleared entries are skipped, or what happens on partial mismatch, which is a meaningful remaining gap for a mutation tool.

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?

Four short sentences, front-loaded with the operation and its selection modes, followed by the approval-mode caveat and the amount convention. Every sentence carries information an agent needs; nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a polymorphic three-branch mutation with no output schema, the definition covers targeting and amount formatting well but omits the effect of the operation on entry status, how an agent knows it is in approval mode, and the semantics of date/statement passed alongside the selection. Adequate, but an agent could still invoke it with wrong expectations about the result.

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?

Top-level schema description coverage is 0% (only an enum on target), so the description must compensate, and it does so for the two most confusing aspects: which parameter combination selects which entry, and the amount sign convention (minus = withdrawal/credit, explicit plus = deposit/debit, unsigned = either side), which duplicates and reinforces the nested amount description. It leaves status, date, and statement entirely unexplained in both the schema and the prose.

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?

The description opens with a specific verb pair and resource ("Clear or reconcile entries") and enumerates the three selection modes (transaction/entry IDs, reference/account, atomic batch) that map to the schema's oneOf branches. It does not, however, differentiate itself from the sibling txn_reconcile, even though the wording "Clear or reconcile" overlaps directly with that tool's likely purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The three targeting modes are described, which implicitly tells an agent how to pick a mode, and "Approval mode queues the exact changes" hints at the pre-approval workflow. There is no explicit when-to-use versus txn_reconcile, no stated prerequisites (e.g. entry must exist in the company ledger), and no exclusions, so guidance remains implied rather than stated.

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