Build a consolidated shopping list
create_shopping_listBuilds one consolidated, aisle-organised shopping list from a completed menu draft (menuDraftId) or a set of recipes (recipeIds: catalogue, the user's own, or both), merging duplicate ingredients and scaling to servings. Returns shoppingListId, the source draft and recipes, and counts: buy, covered (already have) and checkStock (pantry matches to confirm); remainingItemCount includes unresolved stock checks. Any recipe ID that can't be resolved is reported in note, meaning the list is incomplete. Pantry handling follows the draft, or explicit pantryMode for recipeIds: ignore and focus do not read stock; use covers comparable measured stock and leaves unmeasured matches as checkStock. Set leaveOutPantry only when asked to leave out Pantry items, matching Chef IQ Shop coverage. Low and zero stock cover nothing. Whole items round up for buying; measured quantities are recipe amounts. get_shopping_list, update_shopping_list and open_shop_handoff take the returned shoppingListId. Requires a linked Chop It account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| servings | No | ||
| recipeIds | No | Explicit recipe ids (used when no menuDraftId). | |
| pantryMode | No | For recipeIds, use checks your Pantry, ignore leaves it out, and focus does not read stock. For a draft, omit or match its pantryMode; change the draft first otherwise. | |
| menuDraftId | No | A menuDraftId returned by create_weekly_menu. | |
| leaveOutPantry | No | Only when asked to leave out Pantry items. Uses the same reversible stock coverage as Chef IQ Shop, including listed items without comparable amounts. Low or zero stock never covers a line. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| counts | No | ||
| revision | No | ||
| sections | Yes | ||
| recipeIds | No | ||
| recipeServings | No | ||
| shoppingListId | Yes | ||
| shopIntelligence | No | ||
| sourceMenuDraftId | No | ||
| remainingItemCount | No |