List nights
list_nightsOne row per night, keyed by the morning it ended on: bed and wake times, and seconds asleep and in each stage. With several devices, the longest sleep is the night. get_night has the stages.
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": "list_nights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive. Omitted: today in the account time zone. | |
| from | No | First day, inclusive. Omitted: 365 days before `to`, the most one call covers. For older rows, call again with an earlier `to`. | |
| limit | No | Rows per page, 1 to 500. | |
| client | No | For a coach: a client id from list_clients, to read that client. Omitted: your own account. | |
| cursor | No | The cursor from the previous page, to continue. |