getSleep
Retrieve sleep data for one night or up to 14 nights, including bedtime, sleep stages, score, heart rate, SpO2, respiration and stress, with optional raw Garmin JSON.
Instructions
Sleep for one night (date: the morning you woke up), or for up to 14 nights (fromDate and toDate), yyyy-MM-dd, as one compact row per night: bedtime and wake (local HH:mm), hours of sleep, deep, light, REM and awake, the sleep score and its quality, the sleep need (hours), average heart rate, average and lowest SpO2, average respiration, awake count, average sleep stress and Garmin's feedback. Missing values are left out, and a night without sleep data has only its date. Set raw=true for Garmin's JSON.
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": "getSleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return Garmin's raw JSON instead of the summary | |
| date | No | Date yyyy-MM-dd | |
| toDate | No | Last date yyyy-MM-dd, with fromDate | |
| fromDate | No | First date yyyy-MM-dd, with toDate |