Parse statement transactions and summary
parse_statementParses inline bank statement content into transaction rows and a summary, supporting CAMT, CSV, OFX/QFX, MT940, and pain.001 formats for reconciliation and analysis.
Instructions
Parse an inline statement payload into transaction rows and a summary.
Returns the resolved ``format``, the ``columns``, the full
``transaction_count``, the ``transactions`` as row dicts (at most
``limit``) and the statement ``summary``. For balances only,
``summarize_statement`` returns just the summary; to confirm a
payload parses without any rows, ``validate_statement``.
Raises:
ToolError: If the format is unsupported, cannot be detected, or
the payload does not parse.
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": {
"content": "<content>"
},
"name": "parse_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum transaction rows to return; omitted returns all. 'transaction_count' is always the full count. | |
| format | No | Explicit format identifier that overrides detection from the filename. Must be exactly one of: 'camt', 'pain001', 'csv', 'ofx', 'qfx', 'mt940' (see list_supported_formats). When omitted, the format is inferred from the filename extension. | |
| content | Yes | The raw statement text to parse, inline (not a file path). Accepts ISO 20022 CAMT.053 and pain.001 XML, SWIFT MT940, CSV exports, and OFX/QFX payloads. | |
| filename | No | Original filename; its extension (.xml, .csv, .ofx, .qfx, .mt940, .sta) selects the format when 'format' is omitted. | statement.xml |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||