add_food_entry
Log a food item and serving quantity to a specific meal in the user's FatSecret diary, optionally setting the date, to track daily nutrition intake.
Instructions
Add a food entry to the user's diary
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": {
"foodId": "<foodId>",
"servingId": "<servingId>",
"quantity": "<quantity>",
"mealType": "<mealType>"
},
"name": "add_food_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format (default: today) | |
| foodId | Yes | The FatSecret food ID | |
| mealType | Yes | Meal type (breakfast, lunch, dinner, snack) | |
| quantity | Yes | Quantity of the serving | |
| servingId | Yes | The serving ID for the food |