get_nutrition_summary
Check whether nutrition supports training by comparing intake, body weight, and training load across weekly or monthly periods.
Instructions
Diet, body weight and training load aligned on the same periods.
This is the tool for "is my nutrition supporting my training?". Each period carries:
nutrition: average intake per LOGGED day (partial days excluded)days_logged/days_in_period: how much of the period that average actually covers — 2 of 7 days is an anecdote, not a weekly averageprotein_g_per_kg: protein against the period's average body weightbody: weight start/end/avg and the change across the periodtraining: workouts, distance, duration and energy burnedexpenditure: energy OUT —active_kcal_avg(movement + exercise),basal_kcal_avg(resting),tdee_kcal_avg(their sum), andbalance_kcal_avg(intake minus TDEE), each with its own day count
Not every block is in every response: body and expenditure depend on
what this athlete's data covers. Work with the blocks you get rather than
asking after the ones you don't.
Active energy already includes workout burn: TDEE is active + basal, and
adding training.energy_kcal on top double-counts every session. Basal is
null until the athlete's app build syncs it, in which case TDEE and balance
are null too and active alone is what you have. Today is excluded from
expenditure — health metrics have no partial-day flag, so a day in progress
holds only the hours elapsed.
Balance is a direction with a magnitude, not a measurement: intake is
self-reported and skews low, which biases the computed deficit larger, and
basal is HealthKit's estimate — the two errors compound rather than cancel.
body carries the unmodelled cross-check: weight_change (a least-squares
fit across the readings' span, not last-minus-first), weight_sd (the
scatter it sits in) and weigh_ins (how many readings back both).
Averages cover energy, macros and the rest of the nutrient columns — but
only energy_kcal, carbs_g, protein_g and fat_g are true totals.
The averages of sodium_mg, fiber_g, sugar_g, saturated_fat_g,
cholesterol_mg and potassium_mg are averages OF LOWER BOUNDS, because
food databases record those on only some entries. Never read one as a
deficiency or an excess; their trends track logging detail as much as diet.
Read days_logged before drawing any conclusion, and remember intake is
self-reported: food logging typically under-reports, so treat the trend
and the macro split as the signal rather than absolute calorie totals.
Weight change over a single week is mostly glycogen and hydration; look
across 3-4 weeks before calling it a trend.
Coaching stance:
Under-fuelling matters more than over-fuelling for an endurance athlete. A persistent deficit alongside hard training is worth flagging even when the athlete asked about weight loss — cross-check how sessions have been going, and recovery metrics if you have them, before saying it's working.
Endurance-relevant anchors: carbohydrate availability around hard/long sessions, protein ~1.6-2.0 g/kg for an athlete in training, and fiber timing before key sessions.
If the athlete wants real micronutrient or sodium status, the answer is a blood test or a dietitian, not this data. Say that plainly.
You are not a dietitian. Flag patterns worth a professional's attention (persistent large deficits, very low intake, an athlete asking about restriction) rather than prescribing an intake plan.
Args: start_date: Start date (YYYY-MM-DD) end_date: End date (YYYY-MM-DD), defaults to today period: "week" (default) or "month" timezone: IANA zone (e.g. "Europe/Amsterdam") used to attribute workouts to a local day; defaults to UTC
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": {
"start_date": "<start_date>"
},
"name": "get_nutrition_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | week | |
| end_date | No | ||
| timezone | No | ||
| start_date | Yes |