get_activity_laps
Retrieves individual laps or auto-kilometer splits for a Garmin activity, returning per-lap distance, durations, pace, heart rate, power, cadence, intensity, and elevation data for split analysis.
Instructions
Get the individual laps of an activity (intervals or auto-km splits).
activity_id is the numeric id from list_recent_activities. Returns a
JSON object with "lap_count" and a "laps" array, one entry per real
Garmin lap: lap number, distance_m, the three durations (elapsed_time_s,
timer_time_s, moving_time_s), pace_min_per_km, avg/max HR, avg/max power,
avg_run_cadence, "intensity" (e.g. WARMUP/ACTIVE/REST — the interval
structure), and elevation gain/loss. Use this instead of
get_activity_details when you need per-lap threshold or split analysis.
GPS start/end coordinates are omitted by default; pass include_gps=true
to include them.
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 | ||
| include_gps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |