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.
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": {
"food_id": "<food_id>",
"food_entry_name": "<food_entry_name>",
"serving_id": "<serving_id>",
"number_of_units": "<number_of_units>",
"meal": "<meal>"
},
"name": "fatsecret_create_food_entry"
}
}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) |