query_metric_series
Retrieve aggregated health metrics like steps or weight over a date range with customizable granularity and aggregation methods.
Instructions
Query time series data for a specific metric
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": {
"metric": "<metric>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "query_metric_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | Metric to query | |
| start_date | Yes | Start date (YYYY-MM-DD) | |
| end_date | Yes | End date (YYYY-MM-DD) | |
| granularity | No | Aggregation granularity | |
| aggregation | No | Aggregation method |