util_chart_spec
CSV to chart spec (Vega-Lite) — Turn CSV into a ready-to-render Vega-Lite v5 chart spec. Infers column types (number, date/year, category) and picks the right chart: line for trends over time, sorted bar for comparisons, scatter for two numbers, histogram for one number, pie only for 8 or fewer slices, heatmap for two categories. Returns the spec with data inlined (up to 500 rows), the reason, column types and alternatives. Optional: x=, y=, color= column names; goal=trend|compare|distribution|relationship|share; title=. Offline, nothing stored. Price: $0.003 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>"
},
"name": "util_chart_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | e.g. month,sales 2025-01-01,1200 2025-02-01,1500 2025-03-01,900 |