Activity analysis (splits, laps, best efforts, power)
get_activity_analysisAnalyze one recorded Garmin activity from its FIT file to get per-km/mile splits, watch laps, best efforts, HR-zone time, first-vs-second-half drift, and power metrics.
Instructions
Per-km or per-mile splits, the watch's laps / workout reps, best efforts, time in HR zones and first-vs-second-half drift and power for ONE recorded activity, computed from Garmin's original FIT file. Use for 'my km splits', 'did I negative split', 'fastest 5 km', 'how long in zone 2', 'did my HR drift', 'my 20 min power', 'what was my NP'. splits: one row per km/mile (time, pace or speed, HR, cadence, power, elevation), timer time so pauses don't count, final partial split labelled. laps: the watch's own laps with intensity (warmup/active/cooldown/rest) and trigger (manual, distance, ...). best_efforts: fastest continuous 1 km, 1 mile, 5 km, 10 km, half and marathon the activity is long enough for, with where each started. hr_zones: time in each HR zone, as the watch recorded it (matches Garmin Connect and summarize_activities). drift: first vs second half pace or speed, HR and aerobic decoupling. power: average, normalized (NP), best 5 s to 60 min, and for rides IF and TSS when ftp_watts is given. Get the ID from search_activities. Manual entries and GPX/TCX imports return a short 'unavailable' note.
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_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Split length and pace unit. Defaults to the user's Garmin unit setting. | |
| include | No | Sections to return. Drop ones the question doesn't need for a shorter answer. | |
| ftp_watts | No | The user's cycling FTP, for IF and TSS. Only if they've given it; Garmin's API doesn't have it. | |
| activity_id | Yes | Garmin activity ID, from search_activities. |