Save a meal
save_mealKeep a meal the user eats often as a saved meal, so next time it is one line ('log my usual breakfast' -> log_saved_meal). Give its items in ONE of three ways: items (name, portion and nutrients for one meal, as in log_food), entry_ids (food entries already logged, from log_food or get_food_log: saved as they were logged), or date + meal_type (everything logged in that meal that day). Saving with the name of an existing saved meal replaces its items: confirm with the user first. It shows under Saved meals on the Fuel screen, where it can be edited or deleted. This saves the meal; it does not log it.
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": {
"name": "<name>"
},
"name": "save_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. | |
| name | Yes | What the user calls it, e.g. 'Usual breakfast', 'Post-run shake' | |
| items | No | ||
| entry_ids | No | Food log entry ids to save as one meal | |
| meal_type | No | With date: save everything logged in this meal that day |