Skip to main content
Glama

Search dishes

food_search
Read-onlyIdempotent

Find dishes by name near a delivery location and compare menu prices, discounts, and restaurants; sort by relevance, cheapest, or biggest discount.

Instructions

Search dishes by name near a delivery point, with price, discount and restaurant.

relevance is one fast index call; cheapest / biggest_discount confirm prices on live menus. For the cheapest X across many menus use food_find_cheapest.

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": {
      "query": "<query>",
      "lat": "<lat>",
      "long": "<long>"
    },
    "name": "food_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesDelivery latitude.
longYesDelivery longitude.
sortNoResult order.relevance
limitNoMax dishes.
queryYesDish word, e.g. 'پیتزا'.
discounted_onlyNoDiscounted only.
include_proteinNoInclude protein stores (butchers, eggs).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.4.0
    • changedInput schema / properties / discounted_only / description
      Previous value: -"Only dishes with a discount."New value: +"Discounted only."
    • changedInput schema / properties / include_protein / description
      Previous value: -"Also search protein stores (butchers, eggs), hidden by default."New value: +"Include protein stores (butchers, eggs)."
    • changedInput schema / properties / lat / description
      Previous value: -"Delivery point latitude."New value: +"Delivery latitude."
    • changedInput schema / properties / long / description
      Previous value: -"Delivery point longitude."New value: +"Delivery longitude."
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the results."New value: +"Result order."
  2. Changed15 schema fields changedv0.2.0
    • removedInput schema / properties / discounted_only / title
      Removed value: -"Discounted Only"
    • changedInput schema / properties / include_protein / description
      Previous value: -"Also search protein stores (butchers, poultry, eggs), which are hidden by default."New value: +"Also search protein stores (butchers, eggs), hidden by default."
    • removedInput schema / properties / include_protein / title
      Removed value: -"Include Protein"
    • changedInput schema / properties / lat / description
      Previous value: -"Latitude of the delivery point (Iran: ~25 to ~40)."New value: +"Delivery point latitude."
    • removedInput schema / properties / lat / title
      Removed value: -"Lat"
    • changedInput schema / properties / limit / default
      Previous value: -20New value: +10
    • changedInput schema / properties / limit / description
      Previous value: -"Max dishes to return."New value: +"Max dishes."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • changedInput schema / properties / long / description
      Previous value: -"Longitude of the delivery point (Iran: ~44 to ~63)."New value: +"Delivery point longitude."
    • removedInput schema / properties / long / title
      Removed value: -"Long"
    • changedInput schema / properties / query / description
      Previous value: -"Dish or food word, Persian works best, e.g. 'پیتزا', 'کباب'."New value: +"Dish word, e.g. 'پیتزا'."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / title
      Removed value: -"food_searchArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "food_searchDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds context annotations cannot: a latency/accuracy split between sort modes, where `relevance` is a single fast index lookup while the price-based sorts hit live menus, implying slower and more authoritative results. It does not discuss result coverage limits or rate behavior.

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

Conciseness5/5

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

Three short sentences with zero filler: capability first, the sort-mode caveat second, the sibling redirect last. Front-loaded and each sentence carries distinct information.

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

Completeness4/5

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

With 7 parameters, 100% schema coverage, no output schema and full annotation coverage, the description supplies what structured fields do not: the index-versus-live-menu distinction and the cross-menu alternative. Minor gaps remain around result content (does each dish carry restaurant distance/ETA?) that an agent may need when interpreting hits.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented, making 3 the baseline. The description does add real meaning for `sort` beyond the schema's bare 'Result order.' by explaining what each enum value actually does under the hood, but it says nothing extra about `discounted_only`, `include_protein`, or `limit`.

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?

The first sentence gives a specific verb (search), resource (dishes), matching mode (by name), and scoping dimension (near a delivery point), plus what comes back (price, discount, restaurant). It also names the sibling `food_find_cheapest` in the third sentence, 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?

The description explicitly routes one case away from this tool ('For the cheapest X across many menus use food_find_cheapest') and explains the tradeoff that selects between sort modes: `relevance` is a fast index call while `cheapest` / `biggest_discount` confirm against live menus. It stops short of stating exclusions for adjacent domains (e.g. grocery items covered by `market_search`).

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