query_health
Retrieve a single Garmin health field, such as heart rate, sleep, or steps, over a date range from your local archive.
Instructions
Query Garmin health data (e.g. heart rate, sleep, stress, body battery, steps) for one field over a date range. Use query_context instead for weather, pollen and air quality; call list_available_fields first if the exact field name is unknown.
field: a health field name, e.g. "resting_heart_rate", "hrv_last_night", "body_battery_max", "steps_series". A "_series" suffix means intraday timeseries data; a plain name means one value per day. Pass the field that matches what you want — "sleep_score" returns three related fields together (sleep_score, sleep_score_feedback, sleep_score_qualifier). date_from/date_to: ISO "YYYY-MM-DD", inclusive. resolution is accepted but ignored — the field name alone decides the shape.
Unknown or ambiguous field names return an "error", often with a "did_you_mean" list of candidates (e.g. "steps" or "stress" without suffix: choose the daily or the _series variant). A clear typo or alias is resolved automatically; _meta.field_resolved_from / field_used then show what was substituted. A field with no data in the range returns empty values, not an error. Every field carries a "unit".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| date_to | Yes | ||
| date_from | Yes | ||
| resolution | No | daily |