Get personal baselines (sleep, HRV, recovery, steps)
get_baselinesCompute personal baselines from recent Suunto days for sleep, HRV, recovery, and steps to judge whether a target date is below, within, or above the user's normal range.
Instructions
Your own recent norms, so a day can be judged against them: the band of the user's last days days (default 28) for sleep duration, sleep score, HRV, recovery on waking, the day's lowest recovery and steps, and where the judged date sits in it. The baseline window is the days days BEFORE date (date-days to date-1); date itself is never part of its own baseline. Per day: sleepDurationS, sleepScore and hrv (AvgHRV) come from the main sleep of the night that led INTO that day (as in get_daily_snapshot; sleep shorter than about 3 h is filed by Suunto as a nap and does not count, so that day has no value), recoveryMorning is the Balance nearest the main sleep's end, recoveryLow the lowest Balance of the local day (Balance x100 equals the watch's Resources %), steps the day's step count. A day without data has no value and is never counted as 0. Output (compact JSON; seconds whole, Balance 2 decimals, everything else 1): { date, from, to, days, metrics: { : { n (days with a value in the window), median, p25, p75, last7Median, latest, latestVsBand } }, notes, errors }. median, p25 and p75 are quantiles by linear interpolation between order statistics (position (n-1)*p in the sorted values; the median of an even n is the mean of the two middle values), and all three are null when n < 7 (too little data; notes says so). last7Median is the median of the last 7 days of the window, null with fewer than 4 values. latest is the value for date itself, null when missing; for steps and recoveryLow it is always null because that day is still running. latestVsBand is 'below' | 'within' | 'above' relative to [p25, p75] (the edges count as within), null when latest or the band is null. The band is the middle half of the user's own last N days, not a medical reference. One request each for sleep and recovery over the whole span; activity is read in pieces of up to 28 days (Suunto's limit for daily statistics), so 90 days cost 6 requests; a section that fails leaves its metrics empty and is listed in errors: [{ section, error }]. 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": {
"date": "<date>"
},
"name": "get_baselines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The local calendar day YYYY-MM-DD being judged against the baseline. Today works: its night may still be in progress and the watch may not have synced yet. | |
| days | No | Length of the baseline window in days, ending the day before `date` (default 28). |