Get conversion
get_conversionRetrieve the result of a conversion job by ID, returning JSON, XLSX, or CSV based on your choice. Use after a timeout to check and download the converted bank statement.
Instructions
Get the current state of one MainBook conversion. When successful, return JSON inline or save XLSX/CSV locally over stdio. HTTP mode returns safe download instructions. Use this after convert_bank_statement times out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Conversion job UUID returned by MainBook. | |
| output_path | No | Optional absolute result file or existing folder on the MCP server machine. Only available over stdio and only inside the allowed folders. | |
| result_type | No | Result representation to retrieve after the job succeeds. | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| pages | Yes | ||
| state | Yes | ||
| job_id | Yes | ||
| message | Yes | ||
| download | No | ||
| timed_out | No | ||
| saved_file | No | ||
| validation | Yes | ||
| result_type | Yes |