Skip to main content
Glama

Bank Statement Parser & Reconciler

Parse Bank Statement Text to CSV/QBO/OFX

parse_bank_statement_text
Read-onlyIdempotent

Deterministically parse plain bank statement text into normalized transactions with exact integer-cent balance reconciliation (Opening + Credits - Debits = Closing), automatic inverted-sign resolution, and formula-safe CSV, QuickBooks QBO, or OFX export.

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": {
      "text": "<text>"
    },
    "name": "parse_bank_statement_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesRaw extracted bank statement text lines (e.g. from pdftotext, clipboard copy, or OCR).
formatNoAccounting export format to render.csv
currencyNoOptional ISO 4217 currency code override (e.g. USD, EUR, GBP).
date_orderNoDate parsing order for slash-separated numeric dates.auto
include_bomNoPrefix UTF-8 BOM to CSV output for Microsoft Excel.
bank_profileNoOptional bank layout hint.auto
number_localeNoDecimal/thousands separator locale (US: 1,234.56; EU: 1.234,56).auto
closing_balanceNoOptional statement closing balance override if omitted from the text.
opening_balanceNoOptional statement opening balance override if omitted from the text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, idempotent, closed-world behavior, so the description is not carrying safety burden. It still adds real value beyond them: deterministic output, integer-cent reconciliation with the stated equation, automatic inverted-sign resolution, and formula-safe CSV (i.e. spreadsheet-injection hardening) — behavior an agent could not infer from annotations or schema.

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?

A single dense sentence that front-loads the core action and then stacks the differentiators in a logical order. It is efficient, though the clause chain is long enough that the three output formats and the reconciliation guarantee compete for attention.

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 nine-parameter parsing tool with no output schema, the description covers the key behaviors an agent needs: what it consumes, how balances are reconciled, sign handling, and what formats come out. Gaps remain around failure behavior when reconciliation does not balance and the shape of the emitted rows, which matter given there is no output schema.

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 100% and all nine parameters are individually documented, so the baseline is 3. The description only indirectly illuminates parameters by mentioning balance reconciliation (relevant to opening_balance/closing_balance overrides) and sign inversion; it adds no syntax or precedence guidance for the four enum-heavy options.

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 gives a specific verb ('parse') and resource ('plain bank statement text') and names the concrete outputs (normalized transactions, CSV/QBO/OFX). It never names the sibling reconcile_and_export_transactions, so the boundary between raw-text parsing and reconciliation/export is left implicit rather than stated.

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 is only implied through the input framing ('plain bank statement text'), which signals this is the entry point when you have unstructured text rather than structured transactions. There is no explicit when-to-use, when-not-to-use, or pointer to the sibling tool for the already-structured case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources