Sleep analysis
get_sleep_analysisRetrieve nightly sleep stages, performance, and efficiency for any period up to 90 days to analyze sleep patterns. Data is fetched live from WHOOP and read-only.
Instructions
Returns nightly sleep for the last days days (default 14), newest first, as a Markdown table: time asleep in hours (light, deep and REM sleep, not time in bed), sleep performance (%) and efficiency (%), then averages. Naps and nights WHOOP hasn't scored are left out, and 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. |