roll_up_data_points
Aggregates Google Health data points into fixed physical-time windows, such as hourly steps or 5-minute heart rate, for trend analysis over a date range.
Instructions
Aggregate a data type into fixed physical-time windows, such as hourly steps or 5-minute heart rate. Range is closed-open; 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>",
"startTime": "<startTime>",
"endTime": "<endTime>",
"windowSize": "<windowSize>"
},
"name": "roll_up_data_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | Yes | RFC 3339 timestamp. | |
| 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. | |
| startTime | Yes | RFC 3339 timestamp. | |
| apiVersion | No | API version. Defaults to v4, or v4beta for beta-only data types. | |
| windowSize | Yes | Window length in seconds with an s suffix, such as 3600s. | |
| 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). |