Skip to main content
Glama

Find cheapest dish

food_find_cheapest
Read-onlyIdempotent

Compare total dish costs across nearby open restaurant menus and FoodParty deals, ranking options by discounted food price plus packaging, delivery, and minimum order.

Instructions

Find the cheapest way to get a dish: scans menus of nearby open restaurants plus FoodParty deals.

Ranks by total = food price after discount + packaging + delivery fee; check min_order. Slower than food_search.

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_find_cheapest"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesDelivery latitude.
longYesDelivery longitude.
limitNoMax dishes.
queryYesDish word, e.g. 'پیتزا'.
max_restaurantsNoMenus to scan (more = slower).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • 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 / max_restaurants / description
      Previous value: -"Open restaurants' menus to scan (more = slower)."New value: +"Menus to scan (more = slower)."
  2. Changed13 schema fields changedv0.2.0
    • 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 / max_restaurants / description
      Previous value: -"How many open restaurants' menus to scan (more = slower, more complete)."New value: +"Open restaurants' menus to scan (more = slower)."
    • removedInput schema / properties / max_restaurants / title
      Removed value: -"Max Restaurants"
    • 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 / title
      Removed value: -"food_find_cheapestArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "food_find_cheapestDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world behavior, yet the description adds real substance: the ranking formula (food price after discount + packaging + delivery fee), the min_order caveat, the scan scope (open restaurants only), and a relative latency warning. It stops short of saying what happens when no dish meets min_order or how ties are broken.

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?

Two tight sentences, front-loaded with the action and the ranking rule; nothing is redundant. Minor deduction for the telegraphic fragments ('plus FoodParty deals', 'check min_order') that read as shorthand rather than clear guidance.

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 no output schema, the description correctly carries the burden of explaining result ordering via the total-cost formula and flags the min_order filter, which is the key thing an agent needs to interpret results. It leaves gaps on empty-result behavior and how delivery estimates are represented, but is adequate for a 5-parameter search tool.

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 lat/long/limit/query/max_restaurants are already documented, including the 'more = slower' note. The description adds conceptual context (total cost includes packaging and delivery, min_order matters) but no per-parameter meaning beyond the schema, so the baseline of 3 applies.

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?

Uses a specific verb and resource ('Find the cheapest way to get a dish') and states the data sources scanned ('nearby open restaurants plus FoodParty deals'). An agent can distinguish this from food_search and food_menu without opening a schema.

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

Usage Guidelines3/5

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

The clause 'Slower than food_search' implies a speed/quality tradeoff and hints at the alternative, and 'check min_order' hints at a precondition. But there is no explicit when-to-use versus food_search or food_meal_for_one, and no statement of when this tool is the wrong choice.

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