Skip to main content
Glama

Search food, products and vendors

zoodex_search
Read-only

Search food and grocery offerings, filter for discounted items, and retrieve vendor or product results—including variety IDs needed to add products to a cart.

Instructions

Search Zoodex in the selected city. scope='all' returns top vendors and products, 'products' or 'vendors' are paged. Use only_discounted=true for items on sale. Product results include variety_id, which is what zoodex_cart_set_item needs. Prices are in toman (the API uses rials; 1 toman = 10 rials).

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>"
    },
    "name": "zoodex_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNofood = restaurants/cafes, supermarket = groceries.food
limitNoMax items to return.
queryYesWhat to search for, e.g. 'پیتزا', 'burger', a restaurant name. Persian queries work best.
scopeNoall
sortsNoVendor sorts from zoodex_search_options.available_sorts, e.g. [{type:'rate',order:'desc'}] or [{type:'date',order:'desc'}]. Not supported for product search.
offsetNoItems to skip (for paging).
filtersNoRaw search filters, as returned by zoodex_search_options.available_filters, e.g. [{type:'off',value:1}] (discounted), [{type:'golden',value:1}] (Golden Off), [{type:'special',value:1}], [{type:'in_person_delivery',value:1}], [{type:'vendor_type',value:7}].
vendor_type_idNoRestrict to a vendor type id (see zoodex_vendor_types).
only_discountedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly and openWorld, so the safety profile is covered; the description adds genuinely non-obvious behavior — that only the 'all' scope is unpaged while product/vendor scopes page, and that prices are returned in toman while the underlying API uses rials. That currency conversion note is the kind of detail that prevents real mistakes. Rate limits and result caps are left to the schema.

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?

Five short sentences, front-loaded with the core operation and mode semantics before the downstream and currency details. Each sentence carries distinct information, though the compressed phrasing of 'in the selected city' and the currency aside read as terse notes rather than fully integrated 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?

For a 9-parameter tool with no output schema, the description covers the high-risk semantics: mode selection, discount filtering, the key return field (variety_id), and unit conversion. Gaps remain around how the 'selected city' is determined (relevant given the zoodex_search_place sibling) and how filters/sorts should be sourced, though the schema hints at zoodex_search_options.

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?

With 78% schema description coverage, the schema already documents most parameters, so the baseline is 3. The description adds meaning for scope (which has no enum description in the schema) and reinforces only_discounted, but says nothing about filters, sorts, limit, or offset beyond what the schema provides.

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 concrete verb and resource (search Zoodex vendors and products) and immediately clarifies output shape via the scope values. It does not explicitly contrast itself with search-adjacent siblings such as zoodex_market_search or zoodex_list_vendors, so differentiation relies on the scope explanation rather than a direct comparison.

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?

Gives actionable when-to guidance for each mode: scope='all' for a top-level result set, 'products'/'vendors' for paged retrieval, and only_discounted=true for sale items. It also names the downstream consumer (zoodex_cart_set_item needs variety_id), which tells the agent why to use product results. It stops short of saying when to prefer this over other search/list tools.

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