Get sleep
get_sleepRetrieve one night's sleep details or a multi-night range, including stages, score, SpO2, respiration, HRV, and trends, to review sleep quality and recovery.
Instructions
Sleep for one night with stages, score, SpO2, respiration, overnight HRV and a timeline (stage segments, awakenings, lowest HR, HRV and SpO2 with times), or for a range a per-night table with averages and trends. Use it for sleep stages and the detail of particular nights; for sleep hours next to other daily metrics, or months by week, use query_health. A night is named by the date of the morning it ended on: the night of 7 to 8 October is 2026-10-08. No arguments returns the last 7 nights; a range can span up to 3 years, one row per night. Nights not in the cache yet are downloaded from Garmin within the daily request limit, and a night without sleep data comes back as sleep null.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_sleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Range end; default today | |
| date | No | One night, by the date of the morning; takes precedence over from/to | |
| from | No | Range start; default 6 days before `to` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |