group_analysis
Aggregate a metric by one or more categorical dimensions, applying mean, sum, count, median, min, or max to summarize grouped data.
Instructions
Aggregate a metric column grouped by categorical dimension(s) (e.g. group_by='Category', metric='Sales', aggregation='sum'). Aggregations: 'mean', 'sum', 'count', 'median', 'min', 'max'.
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": {
"session_id": "<session_id>",
"group_by": "<group_by>",
"metric": "<metric>"
},
"name": "group_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | ||
| sample | No | ||
| group_by | Yes | ||
| session_id | Yes | ||
| aggregation | No | mean |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |