Skip to main content
Glama

MenuNode

Search restaurants and dishes

search_restaurants
Read-onlyIdempotent

Find restaurants on MenuNode when you do not know the slug yet, by restaurant or by dish. All filters are optional and combine with AND: dish (words that must appear in a dish: name, description, translations, its category or dietary tags — e.g. "milanesa", "sin TACC", "vegan pizza"; returns matched_dishes per restaurant with the price in force right now and whether each dish is available or sold out), query (free text over the restaurant's name, cuisine, description and city OR over its dishes; restaurants that match through a dish also get matched_dishes), city, cuisine, open_now (evaluated in each restaurant's own timezone; restaurants that publish no hours are excluded when open_now is true), dietary (e.g. ["vegetarian","dairy_free"]: the restaurant has available dishes with every tag; vegetarian also counts vegan dishes), accepts_orders, accepts_reservations, near {lat, lng, radius_km} (only restaurants with coordinates; results then sorted by distance). language (en|es|pt|fr) picks the language dish names come back in, when the restaurant offers it. Each result carries price_band: dish prices worked out from its main location's menu today (half of the dishes between p25 and p75, the most expensive section; not per person; null with fewer than 6 priced dishes). Returns up to limit (max 20) results and a next_cursor to page. Only restaurants that publish their menu are searched. Use the returned slug with get_restaurant_info / get_menu / get_menu_structured.

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": "search_restaurants"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity or neighbourhood (accent-insensitive)
dishNoDish or ingredient words, e.g. "milanesa napolitana", "sin TACC", "vegan pizza" (accent-insensitive, all words must match a dish)
nearNo
limitNoResults per page, default 10, max 20
queryNoFree text: restaurant name, cuisine, dish, neighbourhood
cursorNonext_cursor from a previous call
cuisineNoCuisine type, e.g. "pizza", "peruvian", "parrilla"
dietaryNoDietary tags restaurants can set on dishes: vegan, vegetarian, gluten_free, dairy_free, spicy, nuts, halal, kosher. vegetarian also matches vegan dishes. For coeliacs use dish "sin TACC" (celiac_safe), not gluten_free.
languageNoLanguage for dish names in matched_dishes (falls back to the restaurant's own language)
open_nowNo
accepts_ordersNoTakes pay-at-restaurant orders online (create_order)
accepts_reservationsNoTakes table bookings online (create_reservation)

Output Schema

NameRequiredDescriptionDefault
totalYesRestaurants matching the filters (before paging)
resultsYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/open-world; the description adds the real behavioural load: all filters AND-combine, open_now is evaluated in each restaurant's own timezone and excludes restaurants with no published hours, near only matches restaurants with coordinates and re-sorts by distance, price_band is derived from the main location's menu with a null rule under 6 priced dishes, and only restaurants publishing a menu are searched. These are non-obvious scoping and exclusion rules an agent could not get from the annotations.

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

Conciseness4/5

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

Front-loaded with the purpose and the usage condition, and every clause carries real semantics rather than filler. The cost is density: one long paragraph with deeply nested parentheses around dish, dietary and near makes it harder to scan for a 12-parameter tool.

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?

Complete for a 12-parameter, zero-required search tool with an output schema: it covers filtering logic, pagination (limit max 20 plus next_cursor), sort order, and the computed price_band, so the agent knows both how to call it and what shape of result to expect.

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

Parameters4/5

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

Schema coverage is 83%, so the baseline is 3, but the description genuinely adds meaning: dish matches words across dish name, description, translations, category and dietary tags; dietary requires every tag and vegetarian also counts vegan; language only applies when the restaurant offers it. Minor overlap with schema text (e.g. the language enum) keeps it off a 5.

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 and resource ('Find restaurants on MenuNode') plus the discriminating condition ('when you do not know the slug yet, by restaurant or by dish'). That single clause separates it from get_restaurant_info / get_menu, which the description also names as the follow-up path.

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

Usage Guidelines5/5

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

States when to reach for it (slug unknown) and, implicitly, when not to (slug already known), and closes with explicit routing: 'Use the returned slug with get_restaurant_info / get_menu / get_menu_structured.' The alternative path is named rather than left to inference.

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.