Daily health metrics
get_daily_metricsRead daily Apple Health metrics synced to P.R.O. for a bounded recent period. The latest day may be partial; missing days were not synced. Sleep belongs to the night ending on that date. water_ml appears only on days with water logged in Apple Health or in P.R.O. fields_absent identifies untracked fields; restricted identifies fields withheld by sharing settings.
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_daily_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many recent days to return (max 90). Default 14. | |
| include_hypnogram | No | Also return sleep_hypnogram per night: consecutive stage runs from sleep_start, e.g. 'c35 d22 r18 a3' (a awake, c light/core, d deep, r REM, u asleep without stage; number = minutes). Off by default — only ask for it when the timeline of a night matters. |