Skip to main content
Glama

Search products by name

search_products
Read-only

Find products by name at supermarkets near a latitude and longitude, returning barcodes and price ranges so you can look up detailed prices.

Instructions

Searches products by name in the supermarkets near a location and returns their barcodes and price range. Use it to find the barcode before asking for detailed prices.

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

Input Schema

NameRequiredDescriptionDefault
latYesLatitude (Argentina is between -21 and -56)
lngYesLongitude (Argentina is between -53 and -74)
limitNo
queryYesWords to search, e.g. "yerba playadito" or "leche descremada"
radius_kmNoSearch radius in km (default 10, max 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description adds real value by disclosing what is returned (barcodes and price range) and that results are geographically scoped to supermarkets near a location. It does not mention how many results come back by default or how ranking/ordering works, which would complete the picture.

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, both front-loaded with purpose then workflow guidance, and nothing is repeated from the schema or annotations.

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 read-only search with no output schema, the description covers purpose, return fields, and the handoff to a sibling tool. Minor gaps remain around result count and how scattered nearby-store matches are consolidated into one price range.

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 coverage is 80%, so lat, lng, query, and radius_km are already documented with ranges and examples; the description adds the geographic framing only. It does not explain the limit parameter or how name matching works (substring vs. fuzzy), which the schema leaves open.

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 ("Searches products by name") plus the scope (supermarkets near a location) and the return content (barcodes and price range). This clearly distinguishes it from get_product_prices, which is named in the description as the follow-up step.

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?

Explicitly says when to use it: "Use it to find the barcode before asking for detailed prices," which correctly routes the agent to get_product_prices for detail. No exclusions against compare_basket or find_stores are stated, so it is not a full 5.

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