Skip to main content
Glama
Beankeeper

Beankeeper

Official

ledger_setup_statement_import

Import CSV or OFX bank statement contents to post transactions or create approval proposals, returning an undo receipt for newly imported postings.

Instructions

Submit bounded CSV or OFX statement contents. Direct grants post and return a receipt to undo newly imported postings. Propose-only grants return one pending proposal per new row for an approver. Unique pending holds are settled or proposed using the posted bank reference. Ambiguous matches return a validation error. Both modes report identical preexisting postings. Reuse the reference for exact retries.

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": {
      "reference": "<reference>",
      "company": "<company>",
      "bank": "<bank>",
      "suspense": "<suspense>",
      "currency": "<currency>",
      "format": "<format>"
    },
    "name": "ledger_setup_statement_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNoOptional CSV headers, date format, and amount direction.
bankYesThe account represented by this statement.
formatYesCSV or OFX. QFX is accepted as OFX.
companyYesCompany slug of the book.
contentNoThe statement contents.
currencyYesCurrency of the statement. For OFX it must match the embedded currency.
suspenseYesContra account used when no categorization rule matches.
referenceYesStable reference for exact retries.
hold_amount_toleranceNoMaximum amount difference in minor units of the statement currency.
hold_posting_window_daysNoMaximum days between authorization and posting, inclusive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.0
    • changedInput schema / properties / content / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "reference",
      -  "company",
      -  "bank",
      -  "suspense",
      -  "currency",
      -  "format",
      -  "content"
      -]New value: +[
      +  "reference",
      +  "company",
      +  "bank",
      +  "suspense",
      +  "currency",
      +  "format"
      +]
  2. First observedv1.1.0

TDQS

A4.1/5.0
Behavior5/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 so well: it discloses that direct grants post and return an undo receipt, propose-only grants create one pending proposal per new row, ambiguous matches produce a validation error, both modes report identical preexisting postings, and retries are made exact via the reference. That is mutation impact, error behavior, approval semantics, and idempotency all in one place.

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?

Eight short sentences, each carrying a distinct behavioral fact, ordered from what is submitted to what is returned to how to retry. No filler or restatement of the name, and the retry rule lands at the end where it is most actionable.

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 10-parameter mutation with no output schema, the description covers outcomes, approval branching, error cases, and idempotency, which is what an agent most needs. It stops short of describing the returned receipt/proposal payload shape or the size bound implied by 'bounded', leaving minor gaps.

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?

Schema description coverage is already 100%, so the baseline is 3; the description still adds meaning by tying 'reference' to exact retries and by explaining that holds are matched against 'the posted bank reference', which gives purpose to the hold tolerance and posting-window parameters. It does not explain the suspense/currency/format interplay beyond what the schema states.

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 states a specific verb and resource ('Submit bounded CSV or OFX statement contents') and immediately scopes the outcome by grant type. It is clear what the tool does, though it never names a sibling (e.g., txn_import, bank_feed_post) to distinguish itself from other import paths.

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 through the direct-grant vs propose-only-grant branches and the retry instruction ('Reuse the reference for exact retries'), which tells the agent how to behave idempotently. However, there is no explicit when-to-use/when-not guidance versus the other import or bank-feed tools, so selection is left to inference.

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