Skip to main content
Glama

Search groceries

market_search
Read-onlyIdempotent

Find a grocery product across SnappMarket stores that deliver to a given location, showing up to five matching items per store.

Instructions

Search a grocery product across all SnappMarket stores delivering to the point.

Stores (open or not) with up to ~5 matching products each. For one flat cheapest-first list use market_find_cheapest.

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

Input Schema

NameRequiredDescriptionDefault
latYesDelivery latitude.
longYesDelivery longitude.
pageNoPage, from 0.
limitNoStores per page.
queryYesProduct name, e.g. 'شیر'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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."
  2. Changed12 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: +8
    • 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 / page / description
      Previous value: -"Page number, from 0."New value: +"Page, from 0."
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • changedInput schema / properties / query / description
      Previous value: -"Product name, Persian works best, e.g. 'شیر' or 'ماست کاله'."New value: +"Product name, e.g. 'شیر'."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / title
      Removed value: -"market_searchArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "market_searchDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds real behavioral context beyond that: results are grouped per store, closed stores are still included, and each store yields roughly five matching products. It stops short of describing pagination behavior or empty/out-of-coverage results, but the page/limit params in the schema partly cover that.

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?

Two sentences, front-loaded with the action and scope, followed by the result shape and the alternative routing. There is no filler and every clause carries information an agent needs.

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

Completeness5/5

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

For a read-only, open-world search with a fully described schema and no output schema, the description supplies the one thing the schema cannot: the shape of the response (stores with up to ~5 matches each). Nothing essential to calling it correctly is missing.

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 every parameter (lat, long, page, limit, query) is already documented, which sets the baseline at 3. The description adds only the implicit link that lat/long define the delivery point; it gives no extra meaning for paging or query matching semantics beyond the schema.

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 names a specific verb (search) and resource (a grocery product) plus the scope: all SnappMarket stores delivering to the given point, with up to ~5 matches per store. It also distinguishes itself from the sibling market_find_cheapest, so an agent can choose between them without opening either schema.

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?

It explicitly routes the agent to market_find_cheapest when a single flat cheapest-first list is wanted, which is genuine when-to-use guidance. It does not, however, distinguish itself from other closely related siblings such as market_store_products or market_product, leaving that inference to the agent.

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