Edit a food entry
trainrec_edit_foodChanges fields of one food entry, given its id and version. Fields left out stay as they are; perServing is replaced whole. planned: false marks a planned food eaten, with servings or perServing in the same call as what was actually had.
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": {
"id": "<id>",
"version": "<version>"
},
"name": "trainrec_edit_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| day | No | ||
| meal | No | ||
| name | No | ||
| planned | No | false: eaten. true: planned, not eaten yet. | |
| summary | No | ||
| version | Yes | ||
| servings | No | ||
| perServing | No | For ONE serving, as the label or a reliable source states it. | |
| servingLabel | No |