get_activity_timeseries
Retrieve per-sample heart rate, pace, cadence, elevation, grade, and respiration for one Garmin activity to analyze detailed in-session responses, with optional distance zoom and resampling.
Instructions
Get one activity's per-sample heart rate, pace/speed, cadence, elevation, grade and respiration over time, like the charts on Garmin Connect's activity page.
Use only when the user asks to analyse a specific activity in detail (e.g. heart-rate response to climbs, pace or cadence within a session). Do not use for general health, recovery or trend questions.
Returns columns plus one row per resampled interval. Only metrics the activity recorded appear: an indoor session has no distance, pace, elevation or grade, and respiration exists only for some activities; each absent metric is explained in availability, never filled with zeros. moving=false marks stopped samples. elevation_m is smoothed and grade_pct is computed over a distance window by garmin-owl (see availability). sampling reports the native interval, smart vs 1-second recording, pauses, stops and gaps. Optional distance window to zoom into part of the activity. No GPS position or track is ever read or returned.
Requires saved local Garmin authentication (garmin-owl-auth). Reads Garmin and may update the local cache; never changes your Garmin account. Garmin failures are not retried automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"activity_id": "<activity_id>"
},
"name": "get_activity_timeseries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | No | Columns to return; omit for every metric this activity recorded. elapsed_s is always included. A requested metric the activity did not record is omitted and explained in availability. | |
| activity_id | Yes | Positive Garmin activity ID from get_activities or get_recent_activities. | |
| end_distance_m | No | Only samples at or before this distance from the start. | |
| resample_seconds | No | Average samples into intervals of this many seconds, 1-600; defaults to 10. Coarsened automatically (and disclosed) to stay within 600 rows. | |
| start_distance_m | No | Only samples at or after this distance from the start. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| columns | Yes | Names of the values in each row, in order. Only metrics this activity recorded appear. elapsed_s is the mean elapsed time of the samples averaged into the row; other values are their means. | |
| sampling | Yes | ||
| row_count | Yes | ||
| start_time | No | Activity start: ISO 8601 with an explicit UTC offset, e.g. 2026-10-09T23:18:16+02:00. The wall time is already local; never add the offset again. The offset is the one Garmin recorded for the device at that moment, or this computer's time zone when Garmin gives only UTC. | |
| activity_id | Yes | ||
| availability | No | ||
| activity_type | No | ||
| end_distance_m | No | ||
| resample_seconds | Yes | Interval actually used; coarser than requested when the row cap or the response size required it (see availability). | |
| start_distance_m | No | ||
| requested_resample_seconds | Yes |