resolve_metric
Look up an Apple Health metric by alias, HealthKit ID, or display name to get its canonical name, unit, and conversion formulas. Convert values between units.
Instructions
Look a metric name up in the canonical naming and unit table. Accepts the export's own name (step_count), a HealthKit identifier (StepCount, HKQuantityTypeIdentifierStepCount), a display title (Step Count) or a common alias (steps, hrv, spo2, weight) and returns the canonical metric, its unit (percentages are 0 to 1 fractions), the unit variants other apps use with the exact formula into the canonical unit, and whether this export holds it. Pass {value, unit} to convert one value, e.g. 180 lb to kg. A word naming several metrics (distance, calories) comes back ambiguous with candidates, and a different measure (RMSSD vs the SDNN that Apple Health stores) is refused with the reason: nothing is guessed. get_health_metrics, get_trends, compare_periods, get_structured_export and correlate_metrics accept the same aliases and report resolvedFrom when they used one; other tools take the export's own names. The export holds one value per metric per day, already merged across sources by Apple Health, so this tool states that per-source disagreement cannot be seen in the file rather than inventing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Any spelling of a metric, e.g. steps, StepCount, Body Weight, VO2 max. | |
| unit | No | Unit of value, e.g. lb, mmol/L, degF, km, %. Unknown units are refused, never guessed. | |
| value | No | Optional value to convert into the canonical unit. Pass with unit. |