Workouts
get_workoutsRead recorded workout headers for a period and optional sport. Includes a workouts card. Headers do not contain detailed GPS tracks or health samples.
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_workouts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many recent days to cover (max 3650 — the whole synced history). Default 30. Ignored when since is given. | |
| since | No | Start of an exact period, YYYY-MM-DD (inclusive). Use for questions like 'my runs in 2024' or 'last March'. | |
| sport | No | Optional sport/workout type filter, e.g. running, cycling, swimming. | |
| until | No | End of the period, YYYY-MM-DD (inclusive). Defaults to today. | |
| include_details | No | Also return, for recent workouts, hr_series (average bpm per hr_bucket_s seconds from the start, '-' = no reading), splits_pace (minutes per km as decimals, one per completed km: '6.34' = 6 min 20 s), splits_hr and elevation_gain_m. Off by default. |