Aggregate cataloged data
aggregate_dataAggregate fitness metrics for an athlete from one dataset by applying filters, dimensions, and time buckets to compute counts, sums, means, min/max, or percentiles over a selected date range.
Instructions
Declarative aggregation over one cataloged dataset. A timeBucket adds a time_bucket field, which can be used in orderBy. No joins, arbitrary expressions, or file paths. Requires athleteId from list_athletes.
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": {
"athleteId": "<athleteId>",
"dataset": "<dataset>",
"metrics": "<metrics>"
},
"name": "aggregate_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| dataset | Yes | ||
| endDate | No | ||
| filters | No | ||
| metrics | Yes | ||
| orderBy | No | ||
| athleteId | Yes | ||
| startDate | No | ||
| dimensions | No | ||
| timeBucket | No |