Update Sleep
update_sleepUpdate an existing sleep entry via its sleep ID: change timing, type, quality, notes, or timezone.
Instructions
Sleep: patch an existing sleep record by sleep_id. ($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": {
"sleep_id": "<sleep_id>"
},
"name": "update_sleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| quality | No | ||
| ended_at | No | ||
| sleep_id | Yes | ||
| timezone | No | ||
| request_id | No | Client idempotency key (retries return original result). | |
| sleep_type | No | ||
| started_at | No | ||
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| sleep | No | ||
| message | No |