log_template
Log a saved meal by name with optional portion scaling, then return logged items and daily totals versus targets. Use when the user names a saved meal instead of describing food.
Instructions
Log a saved meal by name, optionally scaled. Use when the user names a saved meal instead of describing food. Returns meal_id, the logged items, and the day's totals vs. targets.
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>",
"request_id": "<request_id>"
},
"name": "log_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Saved meal name, as in list_templates | |
| scale | No | Portion multiplier, e.g. 1.5 for a big plate | |
| eaten_at | No | ISO 8601. No offset means local time. Omit for now. | |
| meal_type | No | Omit to infer from local time of day | |
| request_id | Yes | Fresh UUID per write; reuse it only when retrying |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||