aggregate_stats
Groups data by a specified column and computes aggregate statistics (mean, sum, count, min, max, median) on a chosen metric, with optional filtering.
Instructions
按字段分组聚合。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "aggregate_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agg | No | 聚合方式 mean/sum/count/min/max/median | mean |
| format | No | markdown | |
| metric | No | 聚合指标列 | 播放量 |
| source | No | default | |
| group_by | No | 分组列,如 发布日期(按月)或任意列 | 发布日期 |
| condition | No | 可选过滤条件 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |