add_food
Add any food to your nutrition diary using its food ID, meal type, and serving quantity. Find the ID with search_food and optionally specify a serving size from food details.
Instructions
Add a food item to your diary. Use search_food to find the food ID first. Optionally use get_food_details to find a specific serving size.
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>",
"meal": "<meal>",
"quantity": "<quantity>"
},
"name": "add_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format. Defaults to today if not provided. | |
| meal | Yes | The meal slot to add calories to | |
| food_id | Yes | The food item ID from search results | |
| quantity | Yes | Number of servings (e.g., 1, 0.5, 2) | |
| serving_id | No | Serving size ID from get_food_details (uses default if not specified) |