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.
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>",
"period_a_start": "<period_a_start>",
"period_a_end": "<period_a_end>",
"period_b_start": "<period_b_start>",
"period_b_end": "<period_b_end>"
},
"name": "compare_periods"
}
}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 | |||