Skip to main content
Glama
Beankeeper

Beankeeper

Official

txn_meta_set

Add or replace transaction annotations by company and transaction ID or reference, passing string key-value metadata; each change returns an undo receipt.

Instructions

Add or replace transaction annotations. Send values as an object of strings, e.g. {"status":"pending"}. Provide company and exactly one of id or reference. Reserved keys: correlate, reverses, reversed_by, proposal_id, applies_to, beankeeper_source. applies_to is set only when posting a payment and points at the charge it paid (its reference or txn:); a tag shared by payment and invoice links nothing. To link a posted payment, use document_allocate for typed invoices and bills, otherwise txn_link with kind payment. A change returns an undo receipt.

Input Schema

NameRequiredDescriptionDefault
idNo
valuesYesSend values as an object of string values, e.g. {"status":"pending"}, or as a legacy array, e.g. ["status=pending"]. Reserved keys: correlate, reverses, reversed_by, proposal_id, applies_to, beankeeper_source.
companyYes
referenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false; the description adds real behavioral context beyond that, notably that a change returns an undo receipt (reversibility) and that reserved keys are handled specially. It stops short of stating merge-vs-overwrite semantics for keys not sent, which matters for a write tool.

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?

Purpose is front-loaded, then payload shape, then identity parameters, then reserved-key semantics and routing. Dense but nearly every clause carries information; the reserved-key enumeration is the only bulk that could be tightened.

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 write tool with no output schema, four parameters and a nested values object, the description covers payload shape, identity requirements, reserved keys, the undo receipt, and sibling routing. The remaining gap is whether sending values replaces the whole annotation set or merges into it, which "add or replace" leaves ambiguous.

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?

With schema description coverage at 25%, the description compensates well: it explains the values payload shape (object of strings, with a concrete example), the exactly-one-of id/reference rule, and the meaning of the reserved applies_to key including its reference or txn:<id> form. The company parameter's format constraint remains schema-only, and legacy array form is left to the schema.

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?

"Add or replace transaction annotations" gives a specific verb (add/replace) and resource (transaction annotations), and the follow-on text clarifies the scope is an arbitrary key/value annotation map. An agent can distinguish this from txn_meta_unset or txn_link without reading 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 Guidelines5/5

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

The description states an explicit exclusion plus named alternatives with the condition that selects them: "To link a posted payment, use document_allocate for typed invoices and bills, otherwise txn_link with kind payment." It also constrains when applies_to applies ("only when posting a payment"). This is exactly the when/when-not/alternative routing an agent needs.

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