get_trends
Compare the latest N days of an Apple Health metric against the prior N days. Returns change, percent change, trend direction (up/down/flat), and whether sufficient history exists.
Instructions
Compare the most recent N-day window against the prior N days for a metric — returns change, percent change and direction (up/down/flat). Also returns daysAvailable and windowSatisfied: if windowSatisfied is false the file does not hold enough history for the window you asked for, and the comparison is over less data than requested.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | ||
| window | No | days per window (default 7) |