Skip to main content
Glama
ledgerbridge-mcp

ledgerbridge-mcp

reconcile_and_convert_statements

Read-onlyIdempotent

Reconcile and convert bank, Alipay, and WeChat statements: parse CSV/PDF data, deduplicate transfers, net refunds, verify zero-sum balances, and export to OFX, Beancount, YNAB, or CSV.

Instructions

Parses one or more bank CSVs (Chase, Amex, Revolut, Wise, CMB), Alipay (GB18030/UTF-8) CSVs, WeChat Pay CSVs, or pasted PDF statement blocks offline, deduplicates 0-48h cross-account transfers, nets 30d partial/full refunds, proves SUM(postings) === 0 in BigInt cents, and exports OFX 2.2, Beancount, hledger, YNAB, QIF, or Master CSV.

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": "reconcile_and_convert_statements"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNoRaw statement text (single statement or multi-file === FILE: name.csv === blocks).
filePathsNoOptional local file paths read as raw bytes (automatically decodes GB18030 & UTF-8).
statementsNoOptional list of multiple statement objects ({ filename, content, accountName?, accountType?, currency? }).
exportFormatNoTarget accounting export format (defaults to "beancount").
refundWindowDaysNoLookback window in days for partial/full refund netting (defaults to 30).
transferWindowHoursNoCross-account transfer matching window in hours (defaults to 48).
includeMarkdownCertificateNoWhen true, attaches a Markdown reconciliation summary table alongside exportedOutput.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior. The description adds useful behavioral detail beyond that: offline parsing, 0-48h transfer deduplication, 30d refund netting, BigInt-cent zero-sum proof, and multiple export formats. It does not explain failure behavior when the zero-sum proof fails or the exact returned output shape.

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 description is a single dense sentence that front-loads the core parse/reconcile/export actions and contains no filler. The long format enumerations make it harder to scan, but every clause carries substantive meaning.

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 complex multi-format parser and exporter with seven parameters and no output schema, the description covers inputs, processing operations, and export targets well. It leaves out parameter precedence, returned output structure, error handling when reconciliation fails, and how the tool relates to overlapping siblings.

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 the schema already defines content, filePaths, statements, exportFormat, refundWindowDays, transferWindowHours, and includeMarkdownCertificate. The description reinforces supported formats and default windows but does not clarify precedence among content, filePaths, and statements or other interaction semantics beyond 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 description uses a specific verb-resource framing: parses named statement formats, reconciles transfers/refunds, proves zero-sum postings, and exports to named formats. It is clear what the tool does, but it does not distinguish itself from siblings such as detect_cross_account_transfers_and_refunds or generate_deterministic_ofx_fitids.

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 implied by the supported input formats and the offline export workflow, but there is no explicit when-to-use guidance, no when-not-to-use exclusions, and no routing to the overlapping sibling tools.

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