util_csv_pivot
CSV pivot table / group-by — Group and pivot CSV data like a spreadsheet pivot table, offline. Pass csv= (header row; comma, tab, semicolon or pipe auto-detected), rows= group-by column(s), optional cols= pivot column, values= numeric column(s) and agg= sum|avg|count|min|max|median|distinct|stdev|first|last. Handles $1,200.50, 12% and (30) negatives; returns table rows, grand total, pivot values, CSV output and notes on skipped non-numeric cells. Optional sort=key|value|asc, limit= (max 5000). Up to 50,000 rows. 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>",
"rows": "<rows>",
"values": "<values>"
},
"name": "util_csv_pivot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | e.g. region,product,amount East,A,1200 East,B,50 West,A,70 | |
| rows | Yes | e.g. region | |
| values | Yes | e.g. amount |