Skip to main content
Glama
Beankeeper

Beankeeper

Official

txn_post

Post balanced debits and credits to company books in decimal major units, with pending card holds, immediate grants, or propose-only approvals; skip duplicate references.

Instructions

Record balanced debits and credits in decimal major units. Use status=pending for a card hold with one debit and one credit. Direct grants post immediately and return a transaction ID. A propose-only grant reserves the same input and returns a pending proposal ID for approval. Pass a stable reference and on_conflict=skip to skip an already posted reference. A reference must not start with the reserved txn: prefix (any case), which links use for transaction IDs. Posted results list entry IDs. Look up a pending reference in the proposal list.

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>",
      "description": "<description>",
      "debits": "<debits>",
      "credits": "<credits>"
    },
    "name": "txn_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxNo
dateNo
metaNo
debitsYes
statusNoUse pending for a card authorization. Defaults to posted.posted
companyYes
creditsYes
currencyNoA three-letter ISO 4217 currency code with a defined decimal minor unit, such as USD, KRW, or TND. Fund and special-purpose codes are excluded.
metadataNo
correlateNo
referenceNo
descriptionYes
on_conflictNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 declare readOnlyHint=false, so the description carries the real load and does it well: immediate posting with a returned transaction ID, propose-only returning a pending proposal ID, skip semantics for duplicate references, posted results listing entry IDs, and the reserved txn: prefix restriction. It does not cover validation failures, reversibility, or what happens if debits and credits do not balance.

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?

Front-loaded with the core action and units, then ordered by workflow (hold, direct post, propose, idempotency, prefix restriction, lookup). Dense and nearly waste-free, though the propose-mode sentences border on explaining a flow that arguably belongs with a sibling tool.

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 13-parameter mutation with no output schema and minimal annotations, the description covers the important posting and idempotency behaviors but leaves the request-shaping parameters and failure modes unexplained. An agent could still call it, but would be guessing on several fields.

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 15% across 13 parameters, so the description must compensate; it explains status, reference, on_conflict, the txn: prefix rule, and the decimal major-unit amounts. However, required parameters such as company and description, plus tax, meta, metadata, correlate, and date, get no semantic explanation anywhere, leaving a substantial 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?

States a concrete verb and resource ('Record balanced debits and credits in decimal major units') and immediately separates the two posting modes (direct grant returns a transaction ID, propose-only grant returns a pending proposal ID). It stops short of naming the sibling tool an agent should call for the propose flow, so the differentiation is behavioral rather than explicit.

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 when-to-use conditions: status=pending for a card hold with one debit and one credit, reference plus on_conflict=skip to avoid double posting, and 'look up a pending reference in the proposal list' for the propose path. What's missing is an explicit statement of when to use txn_post versus txn_propose or the bulk siblings by name.

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