get_sleep_stats_weekly
Retrieve weekly sleep statistics, including overall stats and per-week values, to track sleep trends across a configurable number of weeks ending on a chosen date.
Instructions
[read-only] Return weekly sleep statistics (overallStats + per-week values).
Signature: get_sleep_stats_weekly(end: str | None = None, weeks: int = 52) -> dict[str, Any]
Dates are YYYY-MM-DD.
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": "get_sleep_stats_weekly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Date as YYYY-MM-DD. | |
| weeks | No |