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)
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": {
"metric_type": "<metric_type>"
},
"name": "get_long_term_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_type | Yes | ||
| months | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||