group_data_tool
Group data by one or more columns with optional aggregations such as sum, mean, median, min, max, count, std, or var. Returns one row per group.
Instructions
Group data by one or more columns with optional aggregations.
Shorthand for transform_data(operation='group'). Returns one row per group with the requested aggregation(s) applied.
Aggregation functions: sum, mean, median, min, max, count, std, var.
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>",
"group_by": "<group_by>"
},
"name": "group_data_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts from get_resource_data() | |
| group_by | Yes | Column name or list of column names to group by | |
| aggregations | No | {column: agg_func} e.g. {"population": "sum"} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||