Log sleep
create_sleepAdd a finished sleep session to the baby's Nestling log. Use this only when the user asks to log or record a sleep that has ended. Each call adds a new entry, so do not retry after success. Accepts ISO 8601 ("2026-05-07T20:00:00Z"), relative ("2 hours ago", "now"), day and time ("today 3pm", "yesterday 8:30pm"), time only ("3pm"), or date and time ("2026-05-07 8pm"). Times without a zone use the timezone argument.
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": {
"babyId": "<babyId>",
"start": "<start>",
"end": "<end>"
},
"name": "create_sleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | When the sleep ended | |
| notes | No | Optional notes (max 10,000 characters) | |
| start | Yes | When the sleep started | |
| babyId | Yes | The baby's ID from list_babies | |
| timezone | No | The user's IANA time zone, such as "Europe/London". When left out, the host's location hint is used if it sends one, else UTC. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| totalResults | Yes |