get_sleep
Retrieve per-night sleep stage durations in minutes, including REM, deep, core, awake, and in-bed time, attributed to the wake-up day. Filter by date range.
Instructions
Per-night sleep stage durations (minutes), attributed to the wake-up day.
Returns [{night, asleep_min, rem_min, deep_min, core_min, awake_min, in_bed_min}]. Older nights may report only in_bed_min (legacy devices lack stage detail).
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": {
"start": "<start>",
"end": "<end>"
},
"name": "get_sleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Local calendar date, ISO 'YYYY-MM-DD'. | |
| start | Yes | Local calendar date, ISO 'YYYY-MM-DD'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |