Skip to main content
Glama
Beankeeper

Beankeeper

Official

reconcile_statement

Complete a calendar-month account statement by matching existing clearings, providing the period end and ending balance, and returning exact reconciled balances plus an undo receipt.

Instructions

Complete a calendar-month account statement using existing clearings. Provide period_end (the last day) and the statement_ending_balance in decimal major units. Optionally filter by statement_ref and either entry_ids or references. Returns exact balances and an audit_undo receipt. Approval mode queues the exact matched clearings and balances. close_period requires direct ledger/reconcile and ledger/admin.

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>",
      "account": "<account>",
      "period_end": "<period_end>",
      "statement_ending_balance": "<statement_ending_balance>"
    },
    "name": "reconcile_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYes
companyYes
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.
entry_idsNoSelect clearing entries by ID. Mutually exclusive with references.
period_endYesLast calendar day of the statement month (YYYY-MM-DD).
referencesNoSelect clearings by transaction reference. Mutually exclusive with `entry_ids`.
close_periodNoAlso advance the company posting cutoff, with ledger/admin.
statement_refNo
statement_ending_balanceYesEnding balance in decimal major units.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the readOnlyHint=false annotation, it discloses that the call returns exact balances and an audit_undo receipt, that approval mode queues the exact matched clearings rather than applying immediately, and that close_period needs elevated ledger roles. Gaps remain about failure behavior — e.g. what happens when the supplied ending balance does not match the clearings.

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?

Five dense sentences with the action and required inputs front-loaded and no filler. Some content duplicates schema text (mutual exclusivity, decimal major units), which is the only real waste.

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 9-parameter mutating tool with no output schema, the description covers the return shape at a high level and flags the risky close_period path. It still leaves the agent guessing about currency handling, mismatch/error outcomes, and how approval mode is actually selected, which is a meaningful hole for a reconciliation operation.

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 coverage is 67%, and the description mostly restates what the schema already documents (period_end as last day, statement_ending_balance in decimal major units, mutual exclusivity of entry_ids and references). It adds genuine value only for close_period roles; currency, statement_ref, company, and account semantics are left unexplained, and 'approval mode' is described with no corresponding parameter in the schema.

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 first sentence gives a specific verb and resource ('Complete a calendar-month account statement') and scopes it to 'existing clearings,' which meaningfully separates it from feed/import tools like ledger_setup_statement_import or bank_feed_post. It does not name a sibling alternative directly, so an agent must infer the boundary from the 'existing clearings' phrasing.

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?

Usage context is implied (period close, optional narrowing by statement_ref plus entry_ids or references) and one prerequisite is stated for close_period ('requires direct ledger/reconcile and ledger/admin'). However, it never says when NOT to use this tool or which sibling to pick instead, which matters given many reconcile-family siblings.

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