daily_roll_up_data_points
Aggregates health data into daily civil-day windows in the user's time zone, so you can summarize metrics such as steps or calories over a date range.
Instructions
Aggregate a data type into civil-day windows in the user's time zone, such as daily steps or calories. endDate is exclusive. At most 14 days for heart-rate, active-minutes, total-calories, and calories-in-heart-rate-zone, 90 days otherwise.
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": {
"dataType": "<dataType>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "daily_roll_up_data_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | Exclusive end date, YYYY-MM-DD. | |
| dataType | Yes | Data type in kebab case, such as steps, sleep, or heart-rate. See list_data_types. | |
| pageSize | No | ||
| pageToken | No | nextPageToken from the previous response. | |
| startDate | Yes | Civil date in the user's time zone, YYYY-MM-DD. | |
| apiVersion | No | API version. Defaults to v4, or v4beta for beta-only data types. | |
| windowSizeDays | No | Days per window. Default 1. | |
| dataSourceFamily | No | Data sources: all-sources (default), google-wearables (Fitbit and Pixel devices only), google-sources (Google devices, manual logs, Health Connect), or self-sources (data this client wrote). |