Skip to main content
Glama

Search vendors

tf_search_vendors
Read-onlyIdempotent

Search open restaurants and stores by name or cuisine near a delivery point to find a vendor code. Use it before fetching menus or dish prices.

Instructions

Search restaurants and stores by name or cuisine near a delivery point.

Use to find a vendor code by name. No dish prices: use tf_menu or tf_search_dishes. Lists only restaurants open now; 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_vendors"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesDelivery latitude, e.g. 35.7577.
longYesDelivery longitude, e.g. 51.4095.
pageNoPage, from 1.
limitNoMax vendors.
queryYesDish or restaurant word, e.g. 'پیتزا'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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 / 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."
  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?

The annotations already establish read-only, idempotent, non-destructive, open-world behavior. The description adds useful behavioral context beyond them: the result is limited to currently open restaurants and vendor-code lookup is the intended outcome, though pagination and return shape are not described.

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?

The description is three short sentences with no wasted wording: purpose first, then usage and alternatives, then the open-status distinction. It is front-loaded and easy for an agent to parse.

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?

For a five-parameter read-only search tool with full schema descriptions and no output schema, the definition covers purpose, alternatives, and open-now filtering well. It could say more about return fields or pagination behavior, but it is sufficient to call the tool correctly.

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 the schema already explains query, lat, long, page, and limit. The description adds only light semantic context around searching by name or cuisine near a delivery point, so baseline 3 is appropriate.

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 description uses a specific verb and resource: search restaurants and stores by name or cuisine near a delivery point. It also distinguishes scope from sibling tools by noting no dish prices and only currently open restaurants, so an agent can tell what this tool does without opening the schema.

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?

It explicitly says to use this to find a vendor code by name and directs dish-price needs to tf_menu or tf_search_dishes. It also states that this lists only open restaurants while tf_restaurants includes closed ones, giving clear when-to-use and alternative routing.

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