Skip to main content
Glama

MenuNode

Read the menu (structured, for ordering)

get_menu_structured
Read-onlyIdempotent

The 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

NameRequiredDescriptionDefault
avoidNoWhat 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.
branchNoLocation 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.
localeNoDeprecated alias of `language`.
languageNoMenu language: en | es | pt | fr. A language the restaurant does not offer falls back to its own language.
restaurant_slugYes

Output Schema

NameRequiredDescriptionDefault
currencyYes
languageYes
timezoneNo
categoriesYes
avoid_notesNoOnly 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_atNoWhen dishes or prices last changed (ISO 8601); null = not recorded. Prefer fresh data over a cached copy older than this (#381)
prices_valid_untilNoYYYY-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_disclaimerNoThe restaurant's notice about allergens and cross-contact, in this language
available_languagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Far beyond the annotations: it explains that prices reflect what is currently in force (happy hour, promos), what create_order will refuse and with which error reasons (preorder_date, preorder_closed, preorder_mixed, scheduled_not_accepted, too_soon), and how sold_out_until and category hours constrain scheduled orders. It is consistent with readOnlyHint/idempotentHint. With annotations already declaring safety, this is strong added context rather than a replacement for them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded correctly and almost every clause carries operational meaning, but it is delivered as one enormous run-on paragraph with deep nested parentheses, making it hard to scan for the rule an agent needs mid-task. Restructuring the availability, allergen and preorder rules into discrete statements would preserve the content at a fraction of the reading cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a rich read tool with an output schema and full annotations, this covers the remaining gaps: timezone-evaluated hours, promo pricing, preorder date mechanics, allergen UNKNOWN handling, the health-information policy, and the caveat that add-ons and daily_menu_upcoming dishes carry no allergen data. An agent has everything needed to call it and interpret the result safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 80% schema coverage the baseline would be 3, but the description adds real meaning: it spells out that `avoid` is not a filter (every dish returns with one answer per key), distinguishes contains / may_contain / not_recorded / not_listed_in_declared, and notes that item ids are stable across languages so `language` does not break ordering. That compensates for the parameters the schema documents more thinly (branch, locale).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+format ("The menu as JSON") and immediately enumerates the structure returned (categories, items, availability, allergens, wine, add-ons). It also distinguishes itself from the sibling get_menu by noting that discontinued dishes live in get_menu.discontinued, so an agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete usage routing: pass `language` for a translated menu, pass `avoid` when the diner states a dietary restriction, and use these item ids with create_order. It also points to get_menu.discontinued for retired dishes. What it does not state explicitly is when to choose this tool over get_menu (i.e., programmatic ordering vs. human-readable display), leaving that one comparison implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.