get_activity_hr_zones
Retrieve time spent in each heart-rate zone (1-5) for a single Garmin activity, including zone limits, totals, and heart-rate data availability, to assess workout intensity.
Instructions
Get the time spent in each heart-rate zone (1-5) for one activity.
activity_id is the numeric id from list_recent_activities or
list_activities_by_date. Returns a JSON object with "zones": one entry per
zone with secs and minutes spent in it, plus the zone's floor_bpm and
ceiling_bpm as configured when the activity was recorded (zone 5 has no
ceiling). "total_secs" / "total_minutes" sum the zones.
"has_hr_data" is false when the activity was recorded without heart rate
(Garmin returns no zones, or every zone at zero): treat the minutes as
unknown then, never as zero. This is the per-activity breakdown behind
get_activity_details' hasHrTimeInZones flag; for the zone limits
themselves, without an activity, use get_running_threshold.
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_hr_zones"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |