x420_csv_to-json
Parses RFC 4180 CSV with quoted fields, escaped quotes, embedded newlines, and custom delimiters into JSON rows keyed by header, with optional number/boolean type inference.
Instructions
CSV to JSON: Parses RFC 4180 CSV (quotes, escaped quotes, embedded newlines, custom delimiter) into JSON rows keyed by header, with optional number/boolean inference. Up to 500 KB and 10,000 rows. Not professional, legal, insurance, engineering, medical, financial or tax advice. PAID: $0.01 USDC per call, settled on Base via x402 from the wallet in X420_MCP_WALLET_PRIVATE_KEY (real money). Returns: JSON: columns[], row_count, total_rows, truncated, ragged_rows, rows[] - the deliverable plus X420's signed receipt and the settlement transaction. Example input: {"text":"name,sqft,hail\nSmith,2400,true\n"Jones, R",1800,false"}.
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": {
"text": "<text>"
},
"name": "x420_csv_to-json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | CSV text | |
| header | No | first row is the header (default true) | |
| max_rows | No | 1–10000 (default 1000) | |
| delimiter | No | field delimiter (default ,; use tab or \t) | |
| infer_types | No | convert numbers/booleans (default true) |