reconcile_and_convert_statements
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
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Raw statement text (single statement or multi-file === FILE: name.csv === blocks). | |
| filePaths | No | Optional local file paths read as raw bytes (automatically decodes GB18030 & UTF-8). | |
| statements | No | Optional list of multiple statement objects ({ filename, content, accountName?, accountType?, currency? }). | |
| exportFormat | No | Target accounting export format (defaults to "beancount"). | |
| refundWindowDays | No | Lookback window in days for partial/full refund netting (defaults to 30). | |
| transferWindowHours | No | Cross-account transfer matching window in hours (defaults to 48). | |
| includeMarkdownCertificate | No | When true, attaches a Markdown reconciliation summary table alongside exportedOutput. |