Skip to main content
Glama
Beankeeper

Beankeeper

Official

audit_undo

Undo an eligible receipt with a signed credential: direct grants apply the correction and return its receipt, while propose-only grants create a pending proposal for an approver.

Instructions

Undo an eligible receipt with your signed credential. Direct grants apply the correction immediately and return its receipt. Propose-only grants return a pending proposal for an approver. Structural changes require the owner. Retrying a receipt returns the recorded undo if it already exists.

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>",
      "receipt": "<receipt>"
    },
    "name": "audit_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYes
receiptYesReceipt ID returned by `audit_receipts`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With only readOnlyHint=false supplied, the description carries the real behavioral load and does so thoughtfully: it discloses the immediate-vs-pending branch by grant type, the owner requirement for structural changes, and retry idempotency (returning the recorded undo). The notable gap is that 'eligible' is never defined, so an agent cannot predict which receipts qualify or what failure looks like.

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 tight sentences, front-loaded with the core action and followed by the branching behavior and idempotency note. Minor friction from 'with your signed credential,' which implies an input the schema does not expose, but nothing is padded.

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 two-parameter mutation tool with no output schema, it covers the important ground: return shapes (immediate correction receipt vs pending proposal), permission tiers, and repeat-call behavior. Undefined eligibility criteria and unstated error behavior keep it from fully closing the loop.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%: receipt is documented in the schema (traced to audit_receipts), but company has only a regex pattern. The description adds no meaning about either parameter — no format for company, no clarification of receipt beyond what the schema already says — 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb (undo) and resource (receipt), with the eligibility and credential constraints stated up front. It is distinguishable from the read-only siblings like audit_receipts and audit_log, though it never names them explicitly to reinforce the boundary.

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?

Explains the outcome-dependent usage conditions well: direct grants apply immediately, propose-only grants yield a pending proposal, and structural changes require the owner. It stops short of explicit when-not-to-use guidance or naming an alternative tool for cases where undo isn't applicable.

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