analyze_climbs
Split any activity recording into climbs, descents, sections and pauses by analyzing grade and speed. Get per-segment time, distance, gain, grade, VAM, power and HR for tours, hikes and trail runs.
Instructions
Use for activities without useful intervals (tours, mountain hikes, trail runs) to split the recording into climbs, descents, sections in between and pauses.
Per segment: time and sample indices, moving time, distance, gain/loss, average and steepest grade, VAM, speed, power, NP, HR, cadence and start/end/min/max/mean/delta of every custom stream. Defaults follow the sport (foot vs bike); implausible grades are flagged and each segment gets a grade confidence. Slow scrambling counts as moving, real pauses as pause. Climb gains are not the activity's total elevation gain. Text lists up to max_segments segments. Read-only, 2 API calls (activity, all streams). Method: intervals://methods/climbs (get_guide).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_id | Yes | Activity id, e.g. i123456789 | |
| max_segments | No | Segments listed in text output | |
| min_grade_pct | No | Minimum average grade of climbs and descents, % | |
| output_format | No | json = machine-readable, all fields | text |
| grade_window_m | No | Distance window of the steepest grade, metres; default 50 on foot, 100 otherwise | |
| pause_min_secs | No | Minimum length of a reported stationary period, seconds | |
| show_raw_grade | No | Also report the grade of the unsmoothed altitude (windows of at least min_grade_distance_m) | |
| min_climb_gain_m | No | Minimum elevation gain of a climb, metres | |
| extra_stream_types | No | Comma-separated standard streams to evaluate per segment besides the custom ones, e.g. temp,respiration,left_right_balance | |
| min_descent_loss_m | No | Minimum elevation loss of a descent, metres | |
| min_grade_distance_m | No | No grade below this horizontal distance, metres; default 30 on foot, 50 otherwise | |
| stationary_speed_m_s | No | Pause candidate below this speed, m/s; default 0.3 on foot, 0.5 otherwise |