Create shopping entry
create_shopping_entryCreate a shopping list entry with an amount and food, and optionally assign units, meal plans, recipes, or exact shopping lists while validating list IDs.
Instructions
Create a shopping list entry. Required: amount, food_id. Optional: unit_id, checked, list_recipe, ingredient, order, delay_until, mealplan_id (links to existing/new ShoppingListRecipe for that mealplan), shopping_list_ids. shopping_list_ids (ids from list_shopping_lists) puts the entry on exactly those lists; the food's lists are not added. When shopping_list_ids is omitted, Tandoor copies the food's lists onto the new entry if the user preference shopping_update_food_lists is on. With [], the tool clears any lists Tandoor copied, so the entry is on no list. add_recipe_to_shopping_list always copies each food's lists; food_shopping_update never does. Changing a food's lists later does not change existing entries. 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": {
"amount": "<amount>",
"food_id": "<food_id>"
},
"name": "create_shopping_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Sort position. | |
| amount | Yes | Amount, in unit_id. | |
| format | No | slim (default) returns a compact shape. full returns the raw Tandoor object. | |
| checked | No | Already bought. Default false. | |
| food_id | Yes | Food ID, from list_foods. | |
| unit_id | No | Unit ID, from list_units. Default none. | |
| ingredient | No | Recipe ingredient ID this entry comes from. | |
| delay_until | No | ISO 8601 datetime to postpone the entry until. | |
| list_recipe | No | Shopping list recipe ID, from list_shopping_list_recipes. | |
| mealplan_id | No | Meal plan ID, from list_meal_plans. | |
| shopping_list_ids | No | Shopping list IDs, from list_shopping_lists. [] puts it on no list. |