get_activity_laps
Retrieve lap-by-lap details from a Garmin activity’s FIT file, including distance, pace, heart rate, cadence, power, and intensity, to analyze intervals and structured workout reps.
Instructions
Laps of one activity from its FIT file: distance, timer time, pace (or speed), grade- adjusted pace, average/max heart rate, cadence, power, ascent/descent, intensity (active, rest, warmup, cooldown) and what ended the lap (manual, distance, time). For structured workouts and intervals, laps are the reps.
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_laps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_id | Yes | Activity ID from search_activities (a positive integer). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||