---
title: "Nutrition log | Fitaily Docs"
description: "Daily summary, meal history, goals and “what to eat next” ideas. This is the heart of the log — where the assistant reads the day’s balance and records new entries."
url: "https://fitaily.com/docs/tools/nutrition/en"
canonical: "https://fitaily.com/docs/tools/nutrition/en"
lang: en
---

# Nutrition log

Daily summary, meal history, goals and “what to eat next” ideas. This is the heart of the log — where the assistant reads the day’s balance and records new entries.

### `get_today_nutrition`

Today's nutrition: Daily nutrition: consumed calories/macros, goals, remaining budget AND the itemized meal list. Defaults to today.

Parametry: `date` (string)

### `get_meal_history`

Meal history: Meal entries over a date range, optionally filtered by meal type.

Parametry: `from`* (string), `to`* (string), `mealType` (enum(breakfast|lunch|dinner|snack)), `limit` (integer)

### `get_nutrition_goals`

Nutrition goals: Current daily calorie and macro goals.

### `suggest_meal`

Meal suggestion: What to eat next for a given meal type: the backend splits the remaining daily budget across meals and ranks candidates from the user's history, recipes and products. Returns projected macros and a match score; falls back to recipes when nothing fits.

Parametry: `mealType`* (enum(breakfast|lunch|dinner|snack)), `date` (string), `limit` (integer)

### `update_nutrition_goals`

Update nutrition goals: WRITE: change daily calorie/macro goals. Confirm the new numbers with the user first.

Parametry: `dailyCaloriesGoal` (integer), `proteinGoal` (number), `carbsGoal` (number), `fatGoal` (number)

### `add_meal`

Log a meal: WRITE: log a meal. Ask the user to confirm first (dish, meal type, macros). Macros are required — look them up with search_foods, never invent them. clientRequestId: generate once per user request (uuid) and reuse it if you retry, so a retry never duplicates the meal.

Parametry: `mealType`* (enum(breakfast|lunch|dinner|snack)), `foodName`* (string), `calories`* (number), `protein`* (number), `carbs`* (number), `fat`* (number), `servingSize` (string), `date` (string), `clientRequestId` (string)

### `update_meal`

Update a meal: WRITE: edit a logged meal by id (from get_today_nutrition/get_meal_history). Confirm with the user first.

Parametry: `id`* (string), `mealType` (enum(breakfast|lunch|dinner|snack)), `foodName` (string), `calories` (number), `protein` (number), `carbs` (number), `fat` (number), `servingSize` (string)

### `delete_meal`

Delete a meal: WRITE: delete a logged meal by id. Confirm with the user first.

Parametry: `id`* (string)

---

[Fitaily MCP na GitHubie](https://github.com/rafafau/fitaily-mcp)
