Skip to main content
Everything an agent inspects between picking a restaurant and building an order.

get_menu

Return the full canonical menu for a restaurant. Input:
Only restaurant_id is required. Two optional inputs make the call cheaper:
  • shallow: true — names and prices only. Items keep their modifierGroupIds (so you can still tell an item has choices), but modifierGroups and modifiers come back empty. Enough for browsing and recommendations.
  • item_id — one item and the full tree of modifier groups and modifiers beneath it (nested groups included), in the same response shape. The usual follow-up to a shallow menu once the user picks something. An id that is not on the menu throws Item <id> not found on this menu.
When capabilities.rate_limited is true, a full menu is expensive, so prefer shallow + item_id. fulfillment_address matters only for some restaurants — see below. Output:
mappings is always an empty array; it is kept only so older clients that read the key don’t break. Multi-menu rules a client must follow:
  • A restaurant serves all of its menus as siblings, not as versions of each other. Each has its own availabilityWindows (empty/absent = always available). Render one menu at a time.
  • Display ordering: each item carries three positions — menuSortOrder (position of the item’s menu within the restaurant, mirroring that menu object’s own sortOrder, so the two never disagree), categorySortOrder (position of the category within its menu), and sortOrder (position of the item within its category). Sort by menuSortOrder before categorySortOrder before sortOrder. Two menus can each send a category with sortOrder: 0, so category order is only meaningful within a menu. All three are optional on an item — they’re always set on fresh imports, but rows from before menus were tracked may omit them; treat a missing value as 0.
  • Items with no menuId are legacy rows imported before menus were tracked — treat them as belonging to the restaurant’s only/first menu.
  • An item’s availabilityWindows are the effective windows (menu opening hours, unless the category or the product overrides them). Combined with the restaurant’s openingHours, this is what lets a client grey out an item that exists but is not orderable at the selected fulfillment time. Enforced server-side too (item_unavailable_at_time).
  • Modifiers can nest: a modifier may own childModifierGroupIds pointing back into the same flat top-level collections. defaultQuantity >= 1 means it comes pre-selected (send pre-selected modifiers unless the user removes them; some restaurants fill a default into any modifier group the line leaves out). Groups with isBundleSection: true belong to a meal deal (isCombo items); maxPerModifier caps repeats of a single modifier independently of the group total.

Live store fields

Some restaurants’ menus add these fields (expect them when capabilities.item_availability is store_level_only):
  • store_is_open — the store’s open state right now. false means no ASAP order is possible.
  • supports_order_ahead — present when store_is_open is false. true means the closed store still takes scheduled orders: build the cart and quote a later time. false means item adds and validation fail even for scheduled slots; do not build a cart.
  • store_next_open_time — ISO instant a closed store reopens, when known. It is not the store’s hours or closing time: which times the restaurant will schedule is only known from quote_order (see scheduled times).
  • promotions — the store’s active deals, once per menu: [{ "id": "promo_…", "title": "Buy 1, get 1 free", "description": "Must add eligible item to cart." }]. id is a handle, not a code a person types. Items list the deals they qualify for in promotionIds (values of promotions[].id), present only when non-empty; an item with no promotionIds can still be discounted by a subtotal-wide deal. At most one promotion applies per order, and whether one applies — and for how much — is only known from quote_order (promoDiscountCents). Never promise an amount or a particular deal from the menu. Absent when the store has no deals and on the single-item (item_id) response.
  • fulfillment_address (input, optional) — the dropoff you are browsing for (address1 and/or latitude/longitude, plus city/state/postal_code). Deal eligibility can depend on the address, so pass the same dropoff you will quote with.
These menus also differ in shape and completeness:
  • One menu per store, with no availability windows. Items and modifiers carry their price as price_cents and their image as image_url (rather than priceCents/imageUrl); modifiers have no isAvailable, and items’ productTags is always empty.
  • modifiersPending: true on an item means it has options but its modifier groups did not load (always the case for an item with options on a shallow menu, and on a full menu when part of it couldn’t be loaded). Never treat such an item as option-free — a bare line with required choices is rejected at quote time. Fetch its groups with item_id first.
  • A modifier group with pricingMode: "absolute" holds full item prices (sizes such as Half / Whole): the chosen option’s price replaces the item’s base price instead of adding to it.
  • These menus may be a few minutes old, so store_is_open and item availability can lag; validation and quoting always check live.
  • A store whose menu can’t be served right now fails with a menu_unavailable error saying the restaurant can’t be ordered from here. Retrying does not help — offer another store.

get_restaurant_detail

Return restaurant profile, location, timing, busy state, and menu structure. Input: { "restaurant_id": "rest_lb_steakhouse" } This call also refreshes opening hours from the POS (the restaurant may have edited hours there); the response waits only briefly on the refresh and falls back to stored hours. Output:
Notes:
  • The tool returns restaurant, location, menus, categories, and capabilities only. Timing fields are mirrored onto restaurant so they survive that trim.
  • capabilities is the same declaration search_restaurants puts on its envelope, here for this one restaurant — see Capabilities.
  • categories are scoped per menu (menuId/menuName): two menus can each own a “Sides”, and merging them would report one oversized category no single menu actually has.
  • selfDeliversEnabled is already reflected in fulfillmentTypesSupported (delivery is stripped when a store neither self-delivers nor has a courier); it is surfaced explicitly so a client can explain why a store is pickup-only. For self-delivery orders the pickup and delivery times are the same instant — the 15-minute courier collection lead only applies when a real courier collects.
  • Some restaurants (capabilities.hours: "unknown") return a thinner detail: name, image, cuisine when known, and the street address (restaurant.address) — the one place such a store’s address appears — plus capabilities. There is no delivery ETA (show the search_restaurants row’s deliveryTime), no live hours, busy state, or resolved lead floors; location is null and menus/categories are empty. deliveryMinLeadTimeMinutes is null (no courier floor — ASAP is genuinely available).

check_delivery_availability

Pre-checkout courier probe: is delivery possible from this restaurant to this dropoff at this time, before any order exists? Input:
Output:
address2 (unit/apartment/suite) is optional and reaches the courier, same as on the order intent’s fulfillment_address. Deliberately optimistic: only an explicit courier “not available” returns available: false. Transient failures return available: true with checked: false. The ETA/quote fields are null whenever no usable quote came back (probe disabled, no location, or an explicit no). Rate limit: 60 calls/min per agent, separate from and stricter than the per-agent MCP quota — every call places a live request with the courier. Exceeding it throws a tool error naming the limit, and no courier request is made. Probe the addresses you are actually going to order to, not a grid. When capabilities.addresses is provider_saved there is no courier probe. What gates delivery is whether the dropoff is a saved delivery address, so that is what the tool answers — with the same matcher quote and submit use: feeCents and the ETA/quote fields are always null for these restaurants; the quote is the authoritative delivery check (quote_order → deliveryAvailability). The 60/min cap applies all the same.