Read the menu (structured, for ordering)
get_menu_structuredThe menu as JSON: categories (with available_now / available_hours for time-of-day menus like breakfast, evaluated in the restaurant's timezone; set_menu_price for a fixed-price menu of the day, which is not orderable dish by dish) → items with item_id, price (the price in force right now, happy hour included; regular_price + price_note when a promo applies), available_now (true = create_order takes it for as soon as possible), orderable (now | later = only in an order scheduled for later, the restaurant takes those | no = not online right now) with orderable_reason (sold_out | notice | hours | set_menu | preorder; null when now) and orderable_from (ISO, only "not before this time" for a dish sold out until then, never a time the order is sure to be taken: the real earliest time comes back as earliest_at; null = go by notice_days or the category hours), available (false = sold out right now: create_order refuses it for as soon as possible; when sold_out_until is set and the restaurant takes scheduled orders, an order scheduled at or after the earliest_at it returns is accepted; a dish outside its category hours can only go into an order scheduled within those hours), sold_out_until (ISO time a "sold out today" dish comes back, else null), preorder on a category (null for most: delivery_dates YYYY-MM-DD on the restaurant's clock and order_by ISO; its dishes are ordered only scheduled on one of those dates, before order_by, in an order with no other dishes: never offer another date; create_order refuses with preorder_date, preorder_closed or preorder_mixed), notice_days (whole days ahead the dish must be ordered, 0 = none; an earlier time fails with scheduled_not_accepted, reason too_soon, earliest_at), dietary tags, allergens (EU-14 keys the dish contains: gluten, crustaceans, eggs, fish, peanuts, soy, milk, tree_nuts, celery, mustard, sesame, sulphites, lupin, molluscs — an empty list never means "allergen-free"), may_contain (same keys, possible traces from cross-contact), allergens_status (declared | none_declared = the restaurant checked and declared none | not_recorded = never filled in, UNKNOWN: tell the diner to ask the restaurant; never present a dish as free of an allergen unless it is explicitly marked) with allergens_reviewed_at, celiac_safe (true only when the restaurant marks the dish "Sin TACC": gluten-free and prepared to avoid cross-contact; the gluten_free dietary tag alone means the recipe has no gluten), calories (kcal per serving as the restaurant declares it; null = not recorded, never estimate), contains_alcohol (true = the restaurant marked the dish as containing alcohol; false = not marked, never "alcohol-free"), wine (null unless the dish is a wine: style red | white | rose | sparkling | sweet, producer = winery, grapes, region, vintage year; any of them may be missing — use it to answer "a Malbec from Mendoza" and the like), add-ons (personalization_id, price) and pairs_well_with (item_ids of other dishes the restaurant suggests with this one — offer them once when the diner orders the dish, never push; may list a dish that is sold out or out of hours right now, check its own available_now). allergen_disclaimer is the restaurant's own notice about allergens and cross-contact (null if none). Pass language for a translated menu (the response says which language you got and which exist). Item ids are the same in every language. Use these ids with create_order. Dishes the restaurant no longer serves are not here: get_menu.discontinued lists them. Pass avoid when the diner says what they cannot eat: contains = the restaurant declares it in the dish; may_contain = declared as possible traces (cross-contact): a conflict too, not a detail; not_recorded = the restaurant has not recorded it for this dish: UNKNOWN, not absent; not_listed_in_declared = the restaurant reviewed the dish and it is not among what it declares, which is not a guarantee. None of these values means a dish is safe or free of an allergen, and a dish with no row is unknown. Health information: never tell the diner a dish is safe or free of anything, whatever the answer; pass on the note of each dish you mention (note_id, its text in avoid_notes), and tell them to confirm with the restaurant before ordering. Add-ons carry no allergen information. daily_menu_upcoming dishes carry no allergen information.
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": {
"restaurant_slug": "<restaurant_slug>"
},
"name": "get_menu_structured"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avoid | No | What the diner must avoid: EU-14 allergen keys, or gluten_celiac for a coeliac (it also reads the Sin TACC mark). Not a filter: every dish still comes back, each with one answer per key. peanuts and tree_nuts are separate; shellfish needs crustaceans and molluscs; any other allergy has no key: send the diner to the restaurant. | |
| branch | No | Location of a restaurant with several (get_restaurant_info.locations[].branch, e.g. "palermo"). Omit for the main location. Hours, contact, address, ordering and reservations differ per location. | |
| locale | No | Deprecated alias of `language`. | |
| language | No | Menu language: en | es | pt | fr. A language the restaurant does not offer falls back to its own language. | |
| restaurant_slug | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ||
| language | Yes | ||
| timezone | No | ||
| categories | Yes | ||
| avoid_notes | No | Only with `avoid`: the text of each note_id. Tell the diner the note of the dishes you mention; translate it if needed, but do not soften it. | |
| menu_updated_at | No | When dishes or prices last changed (ISO 8601); null = not recorded. Prefer fresh data over a cached copy older than this (#381) | |
| prices_valid_until | No | YYYY-MM-DD (the restaurant's calendar): the restaurant states its menu prices are valid until this day inclusive; null = it states no such date. Quote it as the restaurant's statement | |
| allergen_disclaimer | No | The restaurant's notice about allergens and cross-contact, in this language | |
| available_languages | Yes |