util_csv_melt
CSV unpivot (melt) — Reshape a wide CSV into long/tidy format (melt, unpivot, gather): keep the id= columns (comma-separated, default the first column) and turn every other column, or only the values= list, into variable/value rows. Rename the new columns with varName= and valueName=, keep or drop empty cells (dropEmpty, default true). Returns the long CSV, a JSON sample, row-count checks (input x value columns vs output), a numeric/text guess for the values and the exact csv-pivot call that reverses it. Ideal for charting, loading into databases and BI tools. Offline. 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>",
"id": "<id>"
},
"name": "util_csv_melt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | e.g. region | |
| csv | Yes | e.g. region,2024,2025 East,100,120 West,90,130 |