add_food
Add a food item to a Dutch food diary for a specific date and meal after finding the product with search_food.
Instructions
Add a food item to the diary. Call search_food first to get product_id, product_type and synonym_id. The result lists the units the product supports (units_available) and which one was used.
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": {
"date": "<date>",
"meal": "<meal>",
"product_name": "<product_name>",
"product_id": "<product_id>",
"product_type": "<product_type>"
},
"name": "add_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date in DD-MM-YYYY format | |
| meal | Yes | Meal moment: ontbijt/breakfast, lunch, avondeten/dinner, tussendoor/snack | |
| amount | No | Quantity, in the chosen unit (default 1) | |
| product_id | Yes | Id (UUID) from search_food | |
| synonym_id | No | SynonymId from search_food (omit if null) | |
| unit_index | No | Which unit of the product to use, 1-based (default 1 = first unit) | |
| product_name | Yes | ProductName from search_food | |
| product_type | Yes | Type from search_food (1/2/4) |