get_training_summary
Aggregates workout data by week, month, or year, returning counts, total and average distance/duration, and energy burned, with optional activity-type and date-range filters.
Instructions
Get aggregated training summary grouped by time period, newest first.
Args: activity_type: Filter by activity type (e.g. "running"). Omit for all types. period: Grouping period - one of "week", "month", or "year" (default "month"). start_after: Only aggregate workouts starting after this datetime (ISO 8601). start_before: Only aggregate workouts starting before this datetime (ISO 8601). limit: Max rows returned (default 52, max 500). One row per period × activity_type, newest first — without activity_type a period spans multiple rows. History past the limit stays reachable by paging back with start_before.
Returns: List of summary objects, each with: period, activity_type, count, total_distance, total_duration, avg_distance, avg_duration, total_energy_burned.
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": "get_training_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| period | No | month | |
| start_after | No | ||
| start_before | No | ||
| activity_type | No |