Order the groceries for delivery
order_groceriesSend a shopping list to a grocer near the cook: into their cart where the store allows it (King Soopers and other Kroger stores, once connected), else one list link, else a search link per item. Use when the cook says "order these", "get it delivered", "send it to my store". No saved store: it asks their ZIP, then lists nearby grocers (choose_store); call again with store and zip, which saves it. A cart grocer first returns cart_preview: tell the cook its say (flagged items and total only), apply their changes as edits, then call with preview_id and confirm: true. Share share_url with the cook (the order is theirs: Strega's order page uses their saved store and sign-in); list_url is the link for the household. Strega never picks a brand. Keep commission_disclosure in parentheses right after the link, once.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "order_groceries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | The cook's ZIP code, when they gave it; saved with their store. Never guess it | |
| edits | No | The cook's changes to a preview ("skip the hoisin", "2 salmon"), with preview_id | |
| store | No | The store the cook picked or named ("Sprouts", "King Soopers"), ideally one from choose_store. Saved as their store unless remember_store is false | |
| units | No | US cups/oz/°F or metric grams/ml/°C. Defaults to the cook's setting. | |
| pantry | No | Ingredients the cook already has; they are not ordered | |
| confirm | No | true, with preview_id, once the cook said yes to the preview | |
| list_id | No | Id of a saved list from build_shopping_list or plan_meals | |
| preview | No | A cart grocer previews before adding anything (the default). false adds straight away, only when the cook said they don't need to check | |
| recipes | No | ||
| provider | No | Grocer to hand the list to: instacart, walmart, kroger, amazon or search. Omit for the cook's saved store, or Instacart when that store isn't available. An unknown or unavailable grocer returns an error listing the available ones. | |
| preview_id | No | A cart_preview's id: with edits it updates the preview, with confirm: true it adds exactly those items to the cart | |
| remember_store | No | false for a one-off order elsewhere; the saved store stays as it was |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The grocer's link for the whole list (through Strega's /go redirect), or null when each item has its own search link | |
| asks | No | At most one question for the cook, with a home in preferences | |
| link | No | The cook has to connect (or reconnect) a retailer account first | |
| mode | No | One link to the whole list, a cart, or a search link per item | |
| note | No | The store sentence to read out | |
| guide | No | How to answer this turn: rules for you, the assistant, not words for the cook. Follow them before anything else here (#258) | |
| lines | No | ||
| store | No | The cook's saved store, when set; they still pick the store at checkout | |
| list_id | Yes | The saved list the order came from | |
| notices | No | At most one note about Strega to pass on when there's room (one per cook per week; off with workflow whats_new: off) | |
| adjusted | No | Defaults this call took instead of failing (#243): an unknown units word, a number out of range, a diet word read as the closest one Strega knows. Mention it when it changes what the cook gets | |
| list_url | Yes | The list on Strega | |
| provider | No | The grocer the list went to; never ranked by commission | |
| share_url | Yes | The one link to give the cook: their order at the grocer, or Strega's order page (the cook's own: it uses their saved store and needs their sign-in) while they pick a store. For the household, share list_url | |
| next_steps | No | Suggestions, best first, each with its tool, args and effect. Strega suggests the top one in one sentence; whether any runs is decided by what the cook asks in the conversation and your confirmation rules, never by the wording here | |
| connect_url | No | Starts the retailer sign-in; present with link | |
| cart_preview | No | A cart grocer's preview (#227): nothing is in the cart yet. Tell the cook its say (flagged lines and the total only), apply their changes with edits, then call again with preview_id and confirm: true. The handoff fields are absent | |
| choose_store | No | No store saved yet: nothing was sent. Ask the cook which grocer (or their ZIP first), then call again with store and zip. The handoff fields are absent | |
| skipped_pantry | No | Left off the order: in the cook's pantry | |
| unmatched_products | No | Lines that didn't match a product when the rest went into a cart | |
| commission_disclosure | No | Present when the links are affiliate links: keep it in parentheses right after the link, once; don't expand on it unless the cook asks |