transform_data
Convert tabular data between JSON and CSV, or aggregate fields with sum, average, min, max, count, and unique operations.
Instructions
Transform or aggregate tabular/record data. operation='convert' converts between JSON (array of objects) and CSV (requires output_format). operation in {sum, average, min, max, count, unique} aggregates a single field across the records (omit field if data is a flat JSON array of numbers).
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": {
"data": "<data>",
"input_format": "<input_format>",
"operation": "<operation>"
},
"name": "transform_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| field | No | ||
| operation | Yes | ||
| input_format | Yes | ||
| output_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||