Log a saved meal
log_saved_mealLog one of the user's saved meals in one go ('my usual breakfast', 'the post-run shake'). Give its name as the user says it (or its id): it is matched to their saved meals, and when no single one matches nothing is logged and the saved meals are listed so you can ask. portion scales every item (0.5 = half, 2 = double). meal_type is optional: when the user didn't say, Heza picks it from the local time eaten. Returns the logged entries (ids for update_food_log / delete_food_log) and the day's totals vs goals. Use idempotency_key so retries don't create duplicates.
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": {
"meal": "<meal>"
},
"name": "log_saved_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Local date YYYY-MM-DD (or 'today'/'yesterday'). Defaults to today in the user's timezone. | |
| meal | Yes | Saved meal name as the user says it, or its id (from get_saved_meals) | |
| portion | No | Multiplier for the whole meal (default 1) | |
| logged_at | No | When it was eaten: HH:MM (local) or ISO datetime. Defaults to now (or noon for past dates). | |
| meal_type | No | Omit when the user didn't say: picked from the local time eaten | |
| idempotency_key | No |