get_training_summary
A rollup of the user's training over a timeframe: run count, total distance/duration/elevation, longest run, and a by-workout-type breakdown (count, distance, avg pace, avg HR). An untyped run is counted under its run_category. timeframe: pass {preset} = this_week|last_7_days|this_month|last_30_days|this_year, or {from,to} ISO timestamps. 'this_week' is the CALENDAR week (Monday→now, matching the app's Training Hub); use 'last_7_days' for a rolling 7-day window. from and to must be supplied together. Report figures directly in the user's units; a null metric was not recorded, never zero. Copies of the same run from two apps are counted once; duplicates_collapsed says how many were folded. A row whose own span is over 12 hours is never folded, so a duplicated ultra beyond that still counts as stored. runs_quarantined counts runs left out of this response entirely because their own two clocks contradict each other — a run's pause-excluded moving time exceeding its own wall clock, so it can price nothing; the key is absent when there were none, and it says something different from duplicates_collapsed: a quarantined run was dropped on purpose, not folded into another copy of itself.
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 |
|---|---|---|---|
| to | No | ||
| from | No | ||
| preset | No |