compare_activity_segments
Compare the same climb or route segment across 2-10 Garmin activities without GPS by matching distance and elevation profile, returning per-segment metrics with match confidence.
Instructions
Compare the same climb or stretch of route across 2-10 activities without GPS.
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.
The segment is found in each activity by distance from the start plus the shape of the smoothed elevation profile (shifted and stretched slightly to absorb GPS distance drift), never by position. Each matched activity gets the same per-segment metrics as get_activity_segments plus a match confidence; activities that cannot be matched (indoor, different route, low confidence, read failure) are listed in unmatched with the reason.
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_ids": "<activity_ids>"
},
"name": "compare_activity_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segment | No | largest_climb (default): the reference activity's biggest climb. distance_window: start_distance_m to end_distance_m of the reference activity. | largest_climb |
| min_climb_m | No | Smallest elevation change in metres that counts as a climb or descent, 1-200; defaults to 5. Smaller undulations are part of flat segments. | |
| activity_ids | Yes | 2-10 unique activity IDs of the same route, e.g. a regular loop. | |
| end_distance_m | No | distance_window only: window end, at least 50 m after the start. | |
| start_distance_m | No | distance_window only: window start in the reference activity. | |
| reference_activity_id | No | Which of activity_ids defines the segment; defaults to the first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matched | No | ||
| segment | Yes | largest_climb or distance_window. | |
| unmatched | No | ||
| availability | No | ||
| reference_activity_id | Yes | ||
| reference_end_distance_m | No | ||
| reference_start_distance_m | No |