log_food
Log the grams of food eaten, using a catalog product or custom name with macros. Returns the new food log entry ID.
Instructions
Log that grams of a food were eaten. Pass exactly one of: product_id (from
find_product, for a Catalog item) or name + macros (per 100g, model-supplied,
for a one-off — always recorded as estimated). at defaults to now; the stored
date is derived via the 04:00 Europe/Amsterdam day rule, not a calendar date.
Returns the new food_log id.
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": {
"grams": "<grams>"
},
"name": "log_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| name | No | ||
| grams | Yes | ||
| macros | No | ||
| entered_as | No | ||
| product_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |