Log Food to Diary
fatsecret_create_food_entryLog a food and serving size to a meal on a specific date in your FatSecret food diary, calculating nutrition totals from the entry.
Instructions
Create a food diary entry for the user. Logs a specific food + serving to a meal on a given date.
You need food_id and serving_id from fatsecret_search_food / fatsecret_get_food.
Args:
food_id: FatSecret food ID
food_entry_name: Display name (e.g., "Chicken Breast")
serving_id: The serving size ID
number_of_units: How many of that serving (e.g., 2.5 for "2.5 cups")
meal: One of "breakfast", "lunch", "dinner", "other"
date: Date as YYYY-MM-DD string (default: today)
Returns: Created food entry with nutrition totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | FatSecret food ID | |
| food_entry_name | Yes | Display name for the entry | |
| serving_id | Yes | Serving size ID from food details | |
| number_of_units | Yes | Number of servings | |
| meal | Yes | Meal type | |
| date | No | Date YYYY-MM-DD (default: today) |