get_menu
Return the full canonical menu for a restaurant. Input:restaurant_id is required. Two optional inputs make the call cheaper:
shallow: true— names and prices only. Items keep theirmodifierGroupIds(so you can still tell an item has choices), butmodifierGroupsandmodifierscome 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 throwsItem <id> not found on this menu.
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
menusas siblings, not as versions of each other. Each has its ownavailabilityWindows(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 ownsortOrder, so the two never disagree),categorySortOrder(position of the category within its menu), andsortOrder(position of the item within its category). Sort bymenuSortOrderbeforecategorySortOrderbeforesortOrder. Two menus can each send a category withsortOrder: 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 as0. - Items with no
menuIdare legacy rows imported before menus were tracked — treat them as belonging to the restaurant’s only/first menu. - An item’s
availabilityWindowsare the effective windows (menu opening hours, unless the category or the product overrides them). Combined with the restaurant’sopeningHours, 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
childModifierGroupIdspointing back into the same flat top-level collections.defaultQuantity >= 1means 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 withisBundleSection: truebelong to a meal deal (isComboitems);maxPerModifiercaps repeats of a single modifier independently of the group total.
Live store fields
Some restaurants’ menus add these fields (expect them whencapabilities.item_availability is store_level_only):
store_is_open— the store’s open state right now.falsemeans no ASAP order is possible.supports_order_ahead— present whenstore_is_openisfalse.truemeans the closed store still takes scheduled orders: build the cart and quote a later time.falsemeans 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 fromquote_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." }].idis a handle, not a code a person types. Items list the deals they qualify for inpromotionIds(values ofpromotions[].id), present only when non-empty; an item with nopromotionIdscan 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 fromquote_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 (address1and/orlatitude/longitude, plus city/state/postal_code). Deal eligibility can depend on the address, so pass the same dropoff you will quote with.
- One menu per store, with no availability windows. Items and modifiers carry their price as
price_centsand their image asimage_url(rather thanpriceCents/imageUrl); modifiers have noisAvailable, and items’productTagsis always empty. modifiersPending: trueon an item means it has options but its modifier groups did not load (always the case for an item with options on ashallowmenu, 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 withitem_idfirst.- 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_openand item availability can lag; validation and quoting always check live. - A store whose menu can’t be served right now fails with a
menu_unavailableerror 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:
- The tool returns
restaurant,location,menus,categories, andcapabilitiesonly. Timing fields are mirrored ontorestaurantso they survive that trim. capabilitiesis the same declarationsearch_restaurantsputs on its envelope, here for this one restaurant — see Capabilities.categoriesare 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.selfDeliversEnabledis already reflected infulfillmentTypesSupported(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 — pluscapabilities. There is no delivery ETA (show thesearch_restaurantsrow’sdeliveryTime), no live hours, busy state, or resolved lead floors;locationisnullandmenus/categoriesare empty.deliveryMinLeadTimeMinutesisnull(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: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.