CSV to JSON
csv_to_jsonConvert CSV to JSON with a strict RFC 4180 parser: quoted fields, escaped quotes, embedded newlines, CRLF, BOM. Auto-detects the delimiter (comma, semicolon, tab, pipe) or takes one; uses the first row as keys by default (or returns arrays), and optionally infers numbers, booleans and empty-as-null. Pass CSV text or a URL to fetch (max 2 MB, 10,000 rows returned; truncation is flagged). Deterministic, no AI.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "csv_to_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | CSV text (provide csv OR url) | |
| url | No | Public URL of a CSV file to fetch instead | |
| header | No | Treat the first row as column names and return objects (default true); false returns arrays | |
| maxRows | No | Maximum data rows to return, up to 10,000 (default 10,000) | |
| delimiter | No | Field delimiter: ',', ';', '|', or 'tab' (default auto-detect) | |
| inferTypes | No | Convert numbers, true/false, and empty cells to null (default true); false keeps every value a string | |
| skipEmptyLines | No | Drop blank lines (default true) |