Recovery vs running performance
analyze_recovery_impactCompare runs after strong vs poor sleep, HRV, or Body Battery at matched heart rate to show whether recovery affects running pace.
Instructions
Does sleep, HRV or Body Battery relate to how the user runs? Pairs each run with the night before it (sleep score, hours slept, overnight HRV) and that morning's Body Battery, then compares runs after the best third of nights with runs after the worst third at the same heart rate: it fits the user's own speed-for-HR line across the runs and scores each run by how much faster or slower it was than expected for its HR, so easy and hard runs compare fairly. Returns each group's average HR and pace, the difference in s/km (or s/mi) at the same HR, and a correlation, called meaningful only at |r| >= 0.3 with 8+ runs per group. Warns when the groups' average HR differs by over 8 bpm (different kinds of runs). Races, runs under 20 minutes and manual entries are left out. Use for 'does poor sleep hurt my running', 'do I run better when my HRV is high'. Says when there's too little data to conclude; correlation, not proof. Defaults to the last 180 days and running; range up to 366 days.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_recovery_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Pace unit. Defaults to the user's Garmin unit setting. | |
| period | No | Named period resolved in the user's time zone (weeks start Monday). Use instead of start_date/end_date. | |
| measure | No | Recovery measure to compare by; 'all' does each. Pick one for a faster answer. | all |
| end_date | No | Last day, YYYY-MM-DD, inclusive. Defaults to today. | |
| start_date | No | First day, YYYY-MM-DD, inclusive. Defaults to 180 days ago. | |
| activity_type | No | Parent type key, e.g. running, cycling, walking. | running |