query_video_stats
Retrieve video statistics by specifying metrics, columns, conditions, and aggregation rules. Returns results as markdown or JSON with optional pagination.
Instructions
查询统计数据。列名以实际 CSV 为准,metric 必须是存在的列。
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": "query_video_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 分页页码(当 page_size>0 时生效) | |
| rule | No | 取数规则,如 TOP 5 / BOTTOM 3 / 平均值 / 总和 / 按日期 | TOP 5 |
| format | No | 返回格式 markdown/json | markdown |
| metric | No | 指标列名(必须是数据中存在的列) | 播放量 |
| source | No | 数据源名称,默认 default | default |
| columns | No | 逗号分隔的返回列名,空则自动选择标签列+日期列+metric | |
| condition | No | 可选过滤条件 | |
| page_size | No | 每页行数(1-20,0 表示不分页按 rule 取数) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |