Sleep log
sleep_logNights of sleep, one per wake day, exactly as the app and Apple Health count them: bedtime, wake time, hours asleep, and minutes per stage (core, deep, rem, awake). Use this for any sleep question instead of raw metric_samples, which cannot be summed by calendar day.
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": "sleep_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD, inclusive (optional, default today) | |
| days | No | Nights back (default 7, max 90) | |
| from | No | First day, YYYY-MM-DD on the phone's calendar (optional, used instead of days) |