Get Health Metric
get_metricSummarize a numeric health metric for the authenticated user only. Without limit, the aggregate covers the complete window server-side; endDate defaults to now, so omitting limit always yields a complete aggregate. Pass bucket (day or hour) with an IANA timezone for per-day or per-hour aggregates computed on the user's local calendar — use this for questions like "steps per day this week". Passing limit caps the aggregate to the newest samples and marks coverage.complete false.
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": {
"type": "<type>"
},
"name": "get_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| limit | No | ||
| bucket | No | Group the aggregate into per-day or per-hour buckets by sample start date. Buckets use the supplied timezone and omit empty periods. | |
| endDate | No | ||
| timezone | No | IANA time zone identifier (for example America/New_York) used to compute bucket boundaries. Defaults to UTC. Pass the user's local timezone so daily buckets align with their calendar days. | |
| startDate | No |