Skip to main content
Glama

parse_bank_statement

Parse a bank statement PDF (base64) or statement text into structured transactions with dates, amounts, debit/credit type, running balances, and page positions for redline annotation. Handles common US bank layouts (Chase, Bank of America, Wells Fargo, Capital One styles). Scanned image PDFs are flagged for OCR instead of being guessed. Returns a reconciliation check against opening and ending balances. General information only, not tax advice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "parse_bank_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdf_base64NoBase64-encoded bank statement PDF (text-based PDF works best)
statement_textNoExtracted statement text as an alternative to pdf_base64

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the whole behavioral burden, and it does disclose useful traits: supported US bank layouts, refusal-to-guess on scanned PDFs, and a returned reconciliation check against opening/ending balances. What it omits is material — both parameters are optional (required: 0), yet the description never says whether one input is mandatory or what happens if neither is supplied.

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?

The four sentences are dense and front-loaded, leading with the core verb and outputs before layout support and edge-case handling. The closing line 'General information only, not tax advice' is a compliance disclaimer that adds little for an agent selecting or invoking the tool, a minor wasted sentence.

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?

There is no output schema, and the description compensates well by enumerating the returned transaction fields and the reconciliation check. The remaining shortfall is the input-side ambiguity created by zero required parameters, which the description does not resolve.

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%, so both parameters are already documented in the schema (base64 PDF, extracted text as alternative). The description restates the same alternative without adding format constraints, size limits, or precedence rules, so it sits at the baseline for schema-documented parameters.

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 and resource — 'Parse a bank statement PDF (base64) or statement text into structured transactions' — and enumerates the extracted fields (dates, amounts, debit/credit, running balances, page positions). It is clear what the tool produces, but it never names or contrasts with a sibling such as annotate_statement_pdf or categorize_transactions, so the reader must infer the boundary of responsibility.

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?

Implicit guidance exists: 'Scanned image PDFs are flagged for OCR instead of being guessed' tells the agent the tool is not for image-only documents, and 'text-based PDF works best' hints at input choice. However, there is no explicit statement of when to prefer statement_text over pdf_base64, no indication of which downstream tool to call next after parsing, and no exclusions relative to siblings.

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