Get workout rest recovery profile
get_workout_rest_profilePer-rest heart-rate recovery of one guided gym session, from the FIT file's record-level heart rate joined to the guide's lap labels (the same exercise/set mapping as compare_workout_to_plan).
Instructions
Per-rest heart-rate recovery of one guided gym session, from the FIT file's record-level heart rate joined to the guide's lap labels (the same exercise/set mapping as compare_workout_to_plan). compare_workout_to_plan reports only a rest lap's max and min HR, and with restMode countdown the lap lasts exactly its target, so how far and how fast the heart rate fell is invisible there; this tool reads it from the individual HR samples. Output: { workoutKey, status ('ok' | 'no-laps' | 'no-guide-labels' | 'unknown-label-format', passed through from compare_workout_to_plan; any other status returns empty rests), restMode, reliable, note, hrQuality: { reliable (true | false | null when the FIT has no heart rate at all), reasons, coverage }, rests: [{ exercise, exerciseN, set (the set after which the rest happened), plannedRestS, actualDurationS, peakHr, peakAtS, endHr, dropTotal, t10S, t20S, t30S, recoveryBpmPerMin, sampleCount, coverage, note }], perExercise: [{ name, n, medianT20S, medianEndHr, medianRecoveryBpmPerMin }], developer: { apps, fields: [{ name, units, devIdx, fieldNo, baseType }], devChannels } | null, alignment: { workoutStartSource ('session.start_time' | 'laps.startTime' | 'first-record'), lapStartTimeMs, fitStartMs, startSkewS } }. Units: heart rate in bpm; peakAtS in seconds from the start of the rest (negative when the peak came before it); t10S, t20S and t30S in seconds after the peak until the 3-sample-smoothed HR first reached peakHr minus 10, 20 or 30 bpm (null if it never did within the rest); endHr is the mean of the last 5 s of the rest; dropTotal is peakHr minus endHr; recoveryBpmPerMin is the fall (smoothed) over the first 60 s after the peak (or what the rest has left of it); coverage is the fraction of the rest's seconds that have an HR sample (0 to 1). hrQuality rates the whole session's HR: reliable false when under 80% of the session is covered (coverage: the share not lost to gaps of over 10 s between plausible samples, whatever the sampling rate), over 2% of the samples are outside 30-230 bpm, the same value holds for over 180 s, or jumps of over 40 bpm between adjacent samples are frequent; then reliable above is false too and note lists the reasons (the rest numbers are still returned, best effort); null means no heart rate in the FIT at all. peakHr is the highest 3-sample-smoothed value from 15 s before the rest to 30 s after it started (clipped to the rest; the latest of tied values), because optical HR lags the effort by 20-30 s and keeps rising into the rest; a single spike does not set it, and a sharp peak reads a little lower than its raw sample. Samples outside 30-230 bpm are ignored. A rest with fewer than 5 HR samples returns nulls with a note instead of failing. In a workout guide (push_workout_guide) the rest lap before an exercise counts as the rest after the previous exercise; a strength guide with lapGranularity perExercise has no between-set rests, so rests is empty. Caveats: the rest windows come from the lap table's startOffsetS (seconds from the workout start) and are placed on the FIT's timeline from the lap table's startTime (else the FIT session start_time, else its first record); that this lines up exactly was not checked against a real workout, and alignment.startSkewS (FIT session start minus the lap table's startTime) plus the note flag a disagreement of more than 2 s, and reliable is false beyond 10 s. A rest with a lap pressed during it (rest-split) carries a note. After an exercise's last set the transition into the next exercise's prep lap is not profiled. developer lists the SuuntoPlus app's developer fields in the FIT and which of them carry values; it is null or devChannels is empty when the app writes none (whether Suunto's FIT files carry them is unverified). Downloads the FIT file (about 550 KB for a 35-lap session) but returns only a few KB. Optional plan is the same as for compare_workout_to_plan. Read-only.
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": {
"workoutKey": "<workoutKey>"
},
"name": "get_workout_rest_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Optional: what the session was meant to be, in order. Pass the exercises array given to push_strength_guide or push_workout_guide as-is — only name, sets and restSec are read. Without it the plan is read from the lap labels alone. | |
| workoutKey | Yes | The 24-character workoutKey returned by list_workouts. Anything else fails with a not-found error without calling Suunto. |