Daily values for a metric
metric_dailyOne metric as one value per day (a day's total for steps or calories, its average for heart rate and the like). Prefer this to metric_samples for trends and comparisons between days.
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>"
},
"name": "metric_daily"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD, inclusive (optional, default today) | |
| days | No | Days back (default 30, max 400) | |
| from | No | First day, YYYY-MM-DD on the phone's calendar (optional, used instead of days) | |
| metric | Yes | Metric key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | YYYY-MM-DD to value | |
| metric | No |