Skip to main content
Glama

List restaurants

food_restaurants
Read-onlyIdempotent

Find restaurants that deliver to a location with ratings, delivery fees, ETAs, and coupons, or look up a vendor code by name; use food_menu for dish prices.

Instructions

List restaurants delivering to a point, with rating, delivery fee, ETA and coupon info.

Also finds a vendor code by name. No dish prices: use food_menu.

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

Input Schema

NameRequiredDescriptionDefault
latYesDelivery latitude.
longYesDelivery longitude.
pageNoPage of 20, from 0.
sortNo*_expensive rank by price class, not delivery fee.default
queryNoName filter, e.g. 'پیتزا'.
open_onlyNoHide closed/non-delivering.
has_couponNoWith a coupon only.
has_discountNoDiscounted only.
free_deliveryNoFree delivery only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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 / open_only / description
      Previous value: -"Hide closed or non-delivering restaurants."New value: +"Hide closed/non-delivering."
    • removedInput schema / properties / query / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / query / description
      Previous value: -"Restaurant name filter, e.g. 'پیتزا'."New value: +"Name filter, e.g. 'پیتزا'."
    • addedInput schema / properties / query / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / sort / description
      Previous value: -"Order; *_expensive rank by price class, not delivery fee."New value: +"*_expensive rank by price class, not delivery fee."
  2. Changed20 schema fields changedv0.2.0
    • changedInput schema / properties / free_delivery / description
      Previous value: -"Only restaurants with free delivery."New value: +"Free delivery only."
    • removedInput schema / properties / free_delivery / title
      Removed value: -"Free Delivery"
    • changedInput schema / properties / has_coupon / description
      Previous value: -"Only restaurants offering a coupon."New value: +"With a coupon only."
    • removedInput schema / properties / has_coupon / title
      Removed value: -"Has Coupon"
    • changedInput schema / properties / has_discount / description
      Previous value: -"Only restaurants running a discount."New value: +"Discounted only."
    • removedInput schema / properties / has_discount / title
      Removed value: -"Has Discount"
    • 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 / 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 / open_only / description
      Previous value: -"Hide restaurants that are closed or don't deliver here."New value: +"Hide closed or non-delivering restaurants."
    • removedInput schema / properties / open_only / title
      Removed value: -"Open Only"
    • changedInput schema / properties / page / description
      Previous value: -"Zero-based page of 20 restaurants."New value: +"Page of 20, from 0."
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • changedInput schema / properties / query / description
      Previous value: -"Filter by restaurant name, e.g. 'پیتزا' or a brand name."New value: +"Restaurant name filter, e.g. 'پیتزا'."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • changedInput schema / properties / sort / description
      Previous value: -"Order; least_expensive/most_expensive rank by price class, not delivery fee."New value: +"Order; *_expensive rank by price class, not delivery fee."
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / title
      Removed value: -"food_restaurantsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "food_restaurantsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds real value by naming the returned fields (rating, delivery fee, ETA, coupon info), but it omits result-set size/pagination behavior and the default filtering posture (e.g. open_only defaults true, hiding closed vendors).

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 short sentences, front-loaded with the primary capability and ending with an actionable redirect to food_menu. The middle clause about vendor codes is slightly disruptive to the flow and arrives without context.

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

Completeness3/5

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

For a 9-parameter tool with no output schema, the description covers purpose and result shape adequately, and the schema carries parameter detail. The unexplained second mode ('finds a vendor code by name') is the gap: no parameter or wording tells an agent how to trigger it or what it returns instead of the restaurant list.

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%, including the enum sort values and the page-of-20 semantics, so the baseline is 3. The description only indirectly hints at lat/long ('delivering to a point') and at the query parameter ('finds a vendor code by name'); it adds no clarification of sort ranking or the three boolean filters.

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

Purpose4/5

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

States a specific verb and resource ('List restaurants delivering to a point') and enumerates the payload fields (rating, delivery fee, ETA, coupon). It also draws an explicit boundary against food_menu ('No dish prices'), though it does not differentiate itself from close siblings like food_search, food_discounted_vendors or food_find_cheapest.

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?

There is one clear routing rule: use food_menu for dish prices. No guidance is given on when to prefer this tool over food_search, food_find_cheapest or food_discounted_vendors, and the secondary 'find a vendor code by name' mode has no stated trigger condition.

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