Skip to main content
Glama

Search dishes

tf_search_dishes
Read-onlyIdempotent

Search dishes by name near a delivery point and compare price, discount, and restaurant, listing only currently open restaurants for nearby food queries.

Instructions

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

Use for "find X near me" or "cheapest / discounted X". Prices can lag the menu: confirm with tf_menu. Lists only restaurants open now (total can be 0 at night); tf_restaurants also lists closed ones.

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

Input Schema

NameRequiredDescriptionDefault
latYesDelivery latitude, e.g. 35.7577.
longYesDelivery longitude, e.g. 51.4095.
pageNoPage, from 1.
sortNocheapest / biggest_discount / top_rated sort the first 100 matches; nearest is Tapsi's order.relevance
limitNoMax dishes.
queryYesDish or restaurant word, e.g. 'پیتزا'.
discounted_onlyNoOnly dishes with a discount.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.2
    • changedInput schema / properties / lat / description
      Previous value: -"Delivery point latitude, e.g. 35.7577."New value: +"Delivery latitude, e.g. 35.7577."
    • changedInput schema / properties / limit / description
      Previous value: -"Max dishes (40 keeps the reply under 15 KB)."New value: +"Max dishes."
    • changedInput schema / properties / long / description
      Previous value: -"Delivery point longitude, e.g. 51.4095."New value: +"Delivery longitude, e.g. 51.4095."
    • changedInput schema / properties / page / description
      Previous value: -"Page number, from 1."New value: +"Page, from 1."
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the results; cheapest / biggest_discount / top_rated sort the first 100 matches (top_rated = dish rating, then restaurant rating; unrated last). nearest is Tapsi's own order."New value: +"cheapest / biggest_discount / top_rated sort the first 100 matches; nearest is Tapsi's order."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent/openWorld annotations by disclosing that prices can lag the menu and that only currently-open restaurants are searched, so a zero result at night is explained rather than misread. The caveats are genuine behavioral context the annotations cannot supply.

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, front-loaded blocks: identity, use cases with alternatives, then caveats. Every sentence carries distinct information and nothing repeats the schema.

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?

Covers the stale-price and open-now caveats that dominate misuse for this tool, which is substantial for a 7-parameter search with no output schema. It does not describe the result shape or paging behavior when a sort is capped, leaving a minor gap.

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 bounds, sort enum, page and limit are already documented in the schema. The description only implicitly gestures at the sort modes ("cheapest / discounted") and adds no format or syntax detail beyond what the schema provides, so the baseline 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?

States a specific verb and resource ("Search dishes by name near a delivery point") plus the payload fields returned (price, discount, restaurant), which separates it from vendor-level and menu-level siblings.

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?

Gives triggering intents ("find X near me", "cheapest / discounted X") and names the alternatives with the condition that selects them: tf_menu to confirm prices, tf_restaurants when closed venues matter.

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