Skip to main content
Glama

One product at every store

compare_product
Read-only

Needs sign-in. The price of one product (product_id from search_products) at every supermarket near a place, cheapest first, with deals marked and how many stores nearby don't sell it.

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": {
      "product_id": "<product_id>"
    },
    "name": "compare_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lngNo
langNoLanguage for product and chain nameshe
limitNoStores to list
placeNoPlace in Israel: city, neighbourhood or address, Hebrew or English
radius_kmNoStores within this many km (default 5)
product_idYesproduct_id from search_products

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, the description discloses an authentication requirement, the result ordering (cheapest first), that deals are marked in the output, and that a count of nearby stores not stocking the item is returned. These are real behavioral facts an agent cannot get from the annotations, though rate limits or fallback behavior when location is absent are unstated.

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?

One short prerequisite sentence plus a single dense sentence covering scope, ordering, and return content. Nothing is redundant and the sign-in constraint is front-loaded where an agent will see it before invoking.

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?

With no output schema, the description does the necessary work of describing the return shape (sorted prices, marked deals, missing-store count) for a moderately complex 7-parameter tool. The remaining gap is that only product_id is required, so how the location is resolved when place/lat/lng are omitted is left unexplained.

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 71%, so most parameters are already documented in the schema, and the description largely repeats what is there (product_id source, proximity via 'place'). It adds no guidance on choosing between place and lat/lng, or on how limit, lang, and radius_km shape the result, leaving roughly a third of the parameters explained only by the schema.

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?

The description names a concrete operation: pricing ONE product across every supermarket near a place, sorted cheapest-first, with deals flagged and a count of non-carrying stores. The phrase 'one product' implicitly separates it from compare_basket and the 'product_id from search_products' pointer separates it from search_products, though no sibling is named outright.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Needs sign-in' is a useful prerequisite and the 'near a place' framing implies when the tool applies, but there is no explicit when-to-use versus when-not, and no routing to compare_basket for multi-item comparisons or to search_products for finding a product_id. Usage has to be inferred from the scenario wording.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources