Update shopping entry
update_shopping_entryUpdate an existing shopping list entry by ID to change its amount, checked status, food, unit, order, delay, or list assignments without overwriting omitted fields.
Instructions
Update a shopping entry (PATCH). Required: id. Other fields optional. When checked is omitted, the tool reads the entry and sends its current checked value again, so a checked entry keeps its completed_at. A check made elsewhere between that read and the write is undone (last write wins). shopping_list_ids puts the entry on exactly those lists; [] clears them; omit it to keep them. Every list id is checked against list_shopping_lists first; unknown or repeated ids are rejected and nothing is written. If the lists after the write differ from the request, the tool errors and names the missing and the extra lists.
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>"
},
"name": "update_shopping_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Shopping entry ID, from list_shopping_entries. | |
| order | No | Sort position. | |
| amount | No | Amount, in the entry unit. | |
| format | No | slim (default) returns a compact shape. full returns the raw Tandoor object. | |
| checked | No | Bought or not. Omitted keeps the current value. | |
| food_id | No | Food ID, from list_foods. | |
| unit_id | No | Unit ID, from list_units. null clears it. | |
| delay_until | No | ISO 8601 datetime to postpone the entry until. | |
| shopping_list_ids | No | Shopping list IDs, from list_shopping_lists. [] clears, omitted keeps. |