get_wellness_trends
Read multi-day trends for chosen wellness metrics against the athlete's own baseline, with rolling means, statistics and optional correlations (not causes).
Instructions
Use for multi-day wellness trends against the athlete's own baseline (default the 42 days ending today; read-only, statistics only).
Per metric with units: the daily values of the last 14 days with trailing means, period statistics, a personal baseline (the 42 days ending at end_date), the latest value vs that baseline (difference, %, z-score), rolling means, the last 7 days vs the 7 before and outliers (|z| >= 2.5). Missing days are never filled in; for physiological metrics a stored 0 counts as missing. Small samples are flagged (baseline under 14 values, correlation under 30 paired days). Weight adds a 7/14/28-day slope in kg per week. Optional correlations (Pearson, Spearman, with lag) are associations, not causes. One day in context: get_recovery_snapshot. Method: intervals://methods/wellness (get_guide).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | No | Comma-separated, at most 16: native codes (hrv, restingHR, weight, ctl ...), custom field codes, eftp_<Type> | hrv,restingHR,avgSleepingHR,sleepScore,readiness,respiration,spO2,weight |
| windows | No | Comma-separated rolling windows in days, 2-365 | 7,14,42 |
| end_date | No | Last day YYYY-MM-DD; default today | |
| athlete_id | No | Default: the configured athlete | |
| start_date | No | First day YYYY-MM-DD; default 41 days before end_date (42 days) | |
| correlations | No | Comma-separated pairs "a:b" or "a:b:lag_days" (b lag days later), e.g. "hrv:readiness,restingHR:sleepScore:1" | |
| output_format | No | json = machine-readable, all fields | text |