get_long_term_trend
Retrieves long-term health metric trends by merging recent daily data with historical summaries for multi-year and seasonal analysis.
Instructions
Long-term trend for any metric. Tier-aware: merges recent raw data (last 30 days, aggregated to daily) with historical daily summaries, so the trend has no recency gap. Best for multi-year / seasonal analysis. metric_type examples: HKQuantityTypeIdentifierHeartRateVariabilitySDNN, HKQuantityTypeIdentifierRestingHeartRate, HKQuantityTypeIdentifierBodyMass, HKQuantityTypeIdentifierStepCount months: how many months of history to return (default 24)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_type | Yes | ||
| months | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||