Get a day's nutrition
get_day_nutritionGet one day's planned meals with per-serving calories, protein, carbs, fat, fiber, sugar and sodium, plus the day's total. Each meal's numbers are per serving and servings is how many were eaten, which is what a calorie tracker (Lose It!, MyFitnessPal, Cronometer) or Apple Health logs. A meal eaten from a meal prep is one container, so its servings is the requested servings times the servings that container holds. A meal's sides each carry their own numbers and servings; the day's total includes them. tracker_import_url is a recipe page MyFitnessPal's and Cronometer's "import from a website" can read. Dishes in meals_without_nutrition have no nutrition calculated yet (custom meals and sides that are just a name never do). When the user has set daily goals, goals lists them and goal_progress compares the day's total with each: percent of the goal and status under, near (within 10%) or over.
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": {
"date": "<date>"
},
"name": "get_day_nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO date YYYY-MM-DD | |
| servings | No | Servings the person ate of each meal | |
| meal_types | No | Only these meals. Omit for the whole day. |