xlsx_convert
Convert spreadsheets between formats: read xlsx, xls, ods, csv, dbf, JSON and 25+ inputs, then output xlsx, csv, json, md or html. Use it to bring a legacy .xls or .dbf file into an AI agent.
Instructions
Use this when you need to convert a spreadsheet between formats — reads xlsx, xls, xlsb, ods/fods, csv/tsv, dbf, sylk, dif and prn (25+ inputs), plus a file exported or downloaded from Google Sheets; emits xlsx, csv, tsv, json, md, or html. Old binary .xls is read-only: it is accepted as input but never written, so to=xls is refused with a typed 400 unsupported_output_format (an isError result on MCP) — ask for xlsx or csv. DIF, SYLK, ETH, PRN and RTF are not written yet either: those targets get the same typed 400. Often the only way to get a legacy .xls or .dbf into an agent that can't upload one directly. Deterministic and structural, no LLM mapping; exact formula/structure preservation holds on the own-engine path only, so check served_engine in the response (and decline_reason if it reads "incumbent") — a compatibility-engine fallback may not preserve charts, pivots, or other advanced features. For xlsx, xls, csv and json inputs there is no compatibility-engine fallback: if our own writer declines, the call fails with a typed HTTP 501 capability_gap (an isError result on MCP) and retrying the same file does not help. .json is a peer format in both directions: an uploaded .json (JSONL, a bare array of objects, a {"data":[…]} envelope, or a single object) is read into rows and converts to=json, to=csv or to=xlsx, and any supported input converts to=json as one object per row keyed by the header row. A JSON hop carries values only — styles and number formats are dropped, a formula cell emits its computed value rather than the formula text, dates become ISO-8601 strings, and nested fields arrive as flattened dotted column names.
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>",
"to": "<to>"
},
"name": "xlsx_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format. Binary formats land bytes in _meta.file_b64; text formats render in body. | |
| sheet | No | Render only this sheet (text outputs). | |
| sheets | No | For text outputs: render every sheet (default) or only the first. | |
| out_path | No | Optional save path for binary outputs (xlsx/xlsb/etc.). | |
| file_path | Yes | Absolute path to the source spreadsheet file (any supported format). Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. |