list_workouts
List workout sessions in a date range, plus user-marked Rest Day, Sick Day or Travel Day context (returned even on a date with no workout). Context labels explain a day, they are not workouts; Travel Day can coexist with training. use: find a session ID before get_workout; training-history questions. row: ID, date, focus type, location, session NSI with rating.
DATE RANGE: detailed listings read 90-day slices; explicit range limit 3660 days; aggregates unlimited. ALL HISTORY: user asks for "all", "ever" or full history -> all_history=true; starts at the earliest stored workout (respecting activity_type). detailed listings report but do not list history beyond 3660 days; aggregates cover everything stored. OUTPUT BOUND: detailed listings emit at most 250 workouts.
totals, averages, minimums, maximums, counts over any period -> aggregate + field (count needs none), optional group_by; reads every matching record in pages, returns numeric summaries only.
aggregate=count without field: the canonical physical workout count across runs and workout_sessions, walking excluded unless enabled.
other aggregates: measurements of stored workout_sessions rows.
never add up a capped listing. FILTERS: activity_type = stored focus type (imported modalities such as Stair Stepper). exercise_name = sessions containing that exercise in their sets (strength-history questions). combinable. INFER: user-stated dates or years are authoritative; widen freely to the period actually requested.
SAVED WORKOUTS: saved_workouts=true lists the user's reusable Saved Workouts library instead of completed history. Saved workout IDs are separate from workout session IDs.
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 |
|---|---|---|---|
| field | No | Session field to aggregate; not needed for a plain session count. | |
| end_date | No | YYYY-MM-DD; default today. | |
| group_by | No | Group an aggregate by stored local day, month or year; omit for one total. | |
| aggregate | No | Numeric summary instead of session rows. See OUTPUT BOUND. | |
| start_date | No | YYYY-MM-DD; default 7 days ago. | |
| all_history | No | true = start at the earliest stored workout. See ALL HISTORY. | |
| activity_type | No | Stored focus type to match, case-insensitive, e.g. Stair Stepper. | |
| exercise_name | No | Exercise that must appear in the session sets, case-insensitive. | |
| saved_workouts | No | true lists reusable Saved Workouts instead of completed sessions; default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |