ledger_setup_statement_import
Import CSV or OFX bank statement contents to post transactions or create approval proposals, returning an undo receipt for newly imported postings.
Instructions
Submit bounded CSV or OFX statement contents. Direct grants post and return a receipt to undo newly imported postings. Propose-only grants return one pending proposal per new row for an approver. Unique pending holds are settled or proposed using the posted bank reference. Ambiguous matches return a validation error. Both modes report identical preexisting postings. Reuse the reference for exact retries.
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": {
"reference": "<reference>",
"company": "<company>",
"bank": "<bank>",
"suspense": "<suspense>",
"currency": "<currency>",
"format": "<format>"
},
"name": "ledger_setup_statement_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | Optional CSV headers, date format, and amount direction. | |
| bank | Yes | The account represented by this statement. | |
| format | Yes | CSV or OFX. QFX is accepted as OFX. | |
| company | Yes | Company slug of the book. | |
| content | No | The statement contents. | |
| currency | Yes | Currency of the statement. For OFX it must match the embedded currency. | |
| suspense | Yes | Contra account used when no categorization rule matches. | |
| reference | Yes | Stable reference for exact retries. | |
| hold_amount_tolerance | No | Maximum amount difference in minor units of the statement currency. | |
| hold_posting_window_days | No | Maximum days between authorization and posting, inclusive. |