Sleep analysis
get_sleep_analysisRetrieve nightly sleep data for 1-90 days, including bed/wake times, sleep stages, performance, efficiency, and averages to analyze sleep patterns.
Instructions
Returns nightly sleep for the last days days (default 14), newest first, as Markdown tables: bed and wake time, time asleep (light, deep and REM), in bed, deep, REM, light and awake, performance (%) and efficiency (%); a details table with no-data time, sleep cycles, disturbances, consistency (%), respiratory rate and the sleep needed before each night (baseline, debt, strain, nap credit); a naps table; then averages over the nights that have each value. Nights WHOOP hasn't scored are listed as pending. Each night counts toward the day the user woke up. Use it for sleep patterns. For last night's stages, use get_today; for the recovery those nights produced, use get_recovery_trends. Set days to match the question: 7 for the last week, 30 for the last month, up to 90. Read-only: it never changes the user's WHOOP data. It fetches the data live from WHOOP on every call and keeps no copy, so the answer is current; if WHOOP can't be reached, it says so. If WHOOP isn't connected yet, it returns a message asking to call get_auth_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days to cover, counting back from today: 1 to 90, default 14. |