get_trends
Compares the average of a health metric over the past N days to the prior N days to detect trends, returning recent average, prior average, and percentage change.
Instructions
Compares the average of metric (see get_daily_metric for valid
names) over the last window_days days against the window_days
before that -- e.g. window_days=7 answers "is this week's step count
up or down vs last week." Returns recent_avg, prior_avg, and
delta_percent (None if there's no prior-window data to compare against).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | ||
| window_days | No |