compare_periods
Compare a health metric across two date ranges to evaluate changes. Returns per-period statistics and a delta showing which period performed better.
Instructions
Compare a health metric between two date ranges. Dates: YYYY-MM-DD.
Examples:
Sleep before vs after starting magnesium: period_a = two weeks before, period_b = two weeks after
HRV this month vs last month: period_a_start='2026-05-01', period_a_end='2026-05-31', period_b_start='2026-06-01', period_b_end='2026-06-18'
Steps during a work trip vs home baseline
Returns per-period stats and a delta showing which period was better.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_type | Yes | ||
| period_a_start | Yes | ||
| period_a_end | Yes | ||
| period_b_start | Yes | ||
| period_b_end | Yes | ||
| label_a | No | Period A | |
| label_b | No | Period B |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||