Log meal
log_mealLogs a meal in the person's diary with its foods and amounts, or adds foods to a meal already logged. Foods from their catalog are scaled from the values stored for them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "log_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Optional day in YYYY-MM-DD. Defaults to today. | |
| time | No | Optional clock time in HH:MM, ONLY when the user said one. | |
| items | No | The foods eaten in this meal, one object each. | |
| title | No | The dish as the user named it — 'Tortilla francesa', never the meal slot ('Cena': that goes in meal_type). A food of THEIR OWN CATALOG in this meal is written exactly as their catalog spells it: 'Yogur natural proteico, plátano y Galletas (Gullón)', because the diary marks a catalog food in the title only where its full name reads there letter for letter. A favourite dish, by its exact name. Required to create; ignored with entry_id. | |
| dishes | No | Favourite dishes eaten in this meal, from list_foods, copied in food by food. The reply gives each food its item_id: a change for this one day ('sin café') is edit_diary or delete_record after. | |
| entry_id | No | An entry already in the diary, from read_diary, to add the items to instead of creating one. | |
| meal_type | No | Optional, one of: breakfast, lunch, snack, dinner. Left out, a favourite dish's own type is used. | |
| description | No | Optional note on the meal: how it sat, where they were, the company — anything that is not the food itself. What they ate goes in the title, never here. |