joiva_update_log_entry
Change grams, time, preparation (garung, behandlung) or preparation note of an existing Joiva log entry. Changing the preparation re-derives that entry's nutrient values (measured BLS variant first, else documented USDA retention factors); the catalog product stays untouched.
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": {
"entryId": "<entryId>"
},
"name": "joiva_update_log_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grams | No | ||
| notiz | No | Short note on the preparation, e.g. 'selbst geröstet, 10 min 170 °C'. | |
| garung | No | How it was prepared when eaten, exactly one of: roh, gekocht, gedämpft, gebacken, geröstet, gebraten, gegrillt. Not given = as bought (the product's own state is copied); null = clear. Joiva re-derives the values: a measured BLS variant first (e.g. roasted hazelnuts), else documented USDA retention factors; otherwise the entry reports that the preparation is not accounted for. | |
| entryId | Yes | ||
| loggedAt | No | ISO 8601 timestamp with offset | |
| unitCount | No | How many of that unit, e.g. 2 for 'zwei Eier M'. Only stored together with unitLabel. | |
| unitLabel | No | How the amount was meant, e.g. 'Ei M', 'Scheibe', 'EL'. Display only: `grams` stays mandatory and remains the stored amount, so both are given. Labels that match a food's existing `portions` (name and gram weight, as listed in the food catalog) reuse that portion. Not needed when the user gave a weight. | |
| behandlung | No | Pre-treatments, any of: eingeweicht, gekeimt, fermentiert, geräuchert, gepökelt (e.g. soaked AND roasted nuts = behandlung ['eingeweicht'] + garung 'geröstet'). Not given = as bought; [] = none. |