convert_file
Convert Excel or CSV rows into JSON records validated against predefined schemas, with row-level errors reported and optional output saving only when validation passes.
Instructions
Convert a spreadsheet into JSON records that match one of the predefined schemas.
Every row is either converted and validated, or listed in errors with its row
number and reason. Rows are never silently dropped or corrected.
Args: path: File path relative to the data folder. schema: Name of the target schema (see list_schemas). sheet: Excel sheet name. Defaults to the first sheet. decimal_separator: "." (1,234.5) or "," (1.234,5 - common in Danish files). write_output: Save the result as JSON in the output folder. Only allowed when there are no errors, so partial data never ends up downstream.
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": {
"path": "<path>",
"schema": "<schema>"
},
"name": "convert_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet | No | ||
| schema | Yes | ||
| write_output | No | ||
| decimal_separator | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||