Workouts and calendar
list_workoutsRetrieve saved workouts, scheduled sessions, and upcoming races or events to answer training-plan questions and find workout or schedule IDs.
Instructions
List the saved workout library (workouts), the scheduled workouts (upcoming_schedule; Garmin Coach or other training plan ones have source: "plan") and the races or events the user added or subscribed to (upcoming_events). Use it for "my next race", "what is planned this week", "what does my plan say for Saturday" or "which workouts do I have", and to find a workout id or schedule_id. For the steps of one workout use get_workout, to put a workout on the calendar or take it off schedule_workouts, for sessions already done get_activities. sport and limit narrow only the library; from and to set only the calendar window: today and the next 60 days by default, any range up to 3 years, past or future. Calendar months not in the cache yet are downloaded on the way. In events primary marks the goal race of an active training plan; plan gives its phase and target event.
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": "list_workouts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Calendar end; default 60 days after `from` | |
| from | No | Calendar start; default today (or 60 days before `to` when `to` is in the past) | |
| limit | No | Most saved workouts listed in `workouts` | |
| sport | No | Only library workouts of this sport, e.g. running, cycling, strength_training |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |