ai_csv_ask
Ask a question about a CSV — Ask a plain-English question about CSV data and get an exact answer. The model only writes a query plan (filters, group by, sum/avg/min/max/median/count/distinct, sort, limit) from your column schema; the plan then runs deterministically on your rows, so totals and averages are computed, not guessed. Auto-detects comma, semicolon, tab or pipe delimiters, quoted fields, $ and (negative) amounts, dates. Up to 60,000 characters / 5,000 rows. Optional limit= (default 50, max 200). Returns answer, result rows, the plan and warnings. Example: ?csv=region,revenue%0AEast,1200%0AWest,800&question=total revenue by region Price: $0.008 USDC (Base, via x402).
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": {
"csv": "<csv>",
"question": "<question>"
},
"name": "ai_csv_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | region,product,revenue East,Widget,1200 West,Widget,800 East,Gadget,300 | |
| question | Yes | total revenue by region, highest first |