resolve_metric
Look up any metric spelling, alias, or HealthKit identifier to get its canonical name, unit, and conversion; convert one value and flag ambiguous or mismatched measures.
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, merged across sources by Apple Health, so this tool states honestly whether per-source disagreement can be seen in the file (exports that record per-source attribution carry src/by and a sources block; others report it as not available) rather than inventing it.
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": {
"name": "<name>"
},
"name": "resolve_metric"
}
}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. |