Log Sleep
log_sleepLog overnight sleep or naps. Accepts ISO start/end times and handles cross-midnight sessions (e.g., 14:00 to 03:00).
Instructions
Sleep: log overnight or nap. Cross-midnight OK (e.g. 14:00→03:00 = 13h / 780m). ($0.10; API key required)
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": {
"started_at": "<started_at>",
"ended_at": "<ended_at>"
},
"name": "log_sleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| source | No | ||
| quality | No | ||
| ended_at | Yes | ISO end | |
| timezone | No | ||
| request_id | No | Client idempotency key (retries return original result). | |
| sleep_type | No | ||
| started_at | Yes | ISO start | |
| timezone_end | No | ||
| timezone_start | No | ||
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| sleep | No | ||
| message | No |