Convert a bank statement PDF
convert_statementConverts a PDF bank or credit card statement into JSON transactions or saves import-ready CSV, OFX, QFX, QBO, or Xero CSV files.
Instructions
Convert a PDF bank or credit card statement on this computer with BankConv. Use this for a new PDF; for a statement converted earlier, use get_transactions or download_statement with its conversion id (list_conversions finds it). With output "transactions" (the default) it returns a summary and every transaction as JSON: ISO date, description, signed amount (money in positive), running balance; opening balances and totals are left out. Any other output saves that file and returns only its path and any warnings. csv: the statement as a spreadsheet; ofx: Xero, Sage, MYOB, QuickBooks Online; qfx: Quicken; qbo: QuickBooks Desktop (Web Connect); xero: Xero CSV with Xero's own columns. Uploading uses one BankConv page per PDF page. Waits until the conversion finishes. Errors say what went wrong: not_found for an unknown conversion id, gone once a conversion was deleted under data retention (24 hours by default), unreadable_statement when the tables can't be read as transactions (the message names the row), insufficient_credits when the account has too few pages.
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": {
"file_path": "<file_path>"
},
"name": "convert_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | "transactions" returns the rows to you; any other value saves that file. csv: the statement as a spreadsheet; ofx: Xero, Sage, MYOB, QuickBooks Online; qfx: Quicken; qbo: QuickBooks Desktop (Web Connect); xero: Xero CSV with Xero's own columns. | transactions |
| save_to | No | For file outputs: a file path or folder. Defaults to the PDF's folder, named after the PDF. An existing file at that path is overwritten. | |
| password | No | The PDF password, if the statement is password-protected. | |
| file_path | Yes | Path to the PDF statement on this computer. | |
| timeout_seconds | No | How long to wait for the conversion. On timeout the conversion keeps running; fetch it later with its conversion id. |