get_nutrition
Retrieve daily nutrition totals synced from HealthKit, including calories, macros, sodium and micronutrients per logged day, to review food intake across a date range.
Instructions
Get daily nutrition totals synced from HealthKit (food logging apps).
Returns one row per day that has logged food: energy (kcal), carbs, protein,
fat, saturated fat, fiber, sugar, sodium, potassium, cholesterol, water,
caffeine, plus any extra micronutrients under micros, the number of
logged entries and which apps wrote them.
Days with no logging have NO row — absence means "not tracked", not "ate
nothing". A row with partial: true was synced while the day was still in
progress, so its totals are incomplete; exclude those from any average.
ONLY energy_kcal, carbs_g, protein_g and fat_g are daily totals.
sodium_mg, fiber_g, sugar_g, saturated_fat_g, cholesterol_mg,
potassium_mg and every key in micros are LOWER BOUNDS — food databases
record them on only a fraction of entries, so the day sums whichever foods
happened to carry the field. Nothing in the payload marks them, and a
plausible-looking value is not evidence of completeness. Never infer a
deficiency or an excess from one (observed: ~200 mg potassium on a
2,600 kcal day). Null water_ml/caffeine_mg means unreported, not zero.
For trends over more than a couple of weeks, prefer get_nutrition_summary — it aggregates per week or month and aligns intake with weight and training load, at a fraction of the tokens.
Args: start_date: Start date (YYYY-MM-DD) end_date: End date (YYYY-MM-DD), defaults to today limit: Max days returned, newest first (default 60)
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| end_date | No | ||
| start_date | Yes |