Skip to main content
Glama

Compare one product across stores

get_product_prices
Read-only

Compare prices for one product by barcode across nearby supermarkets, showing store with minimum price, median price, promotion details, and whether prices were updated today.

Instructions

Prices of one product (by barcode) in every nearby supermarket: cheapest store, median price, best promotion and whether each price was updated today.

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": {
      "barcode": "<barcode>",
      "lat": "<lat>",
      "lng": "<lng>"
    },
    "name": "get_product_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude (Argentina is between -21 and -56)
lngYesLongitude (Argentina is between -53 and -74)
barcodeYesProduct barcode (EAN-13 printed under the bars, e.g. 7793704000911)
radius_kmNoSearch radius in km (default 10, max 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds meaningful behavioral context: it searches every nearby supermarket, computes aggregates like cheapest store and median price, and reports promotion/freshness status. It does not discuss limits, errors, or result volume, but adds good value beyond the annotations.

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?

It is a single tightly written sentence that front-loads the resource and scope, then lists the most decision-relevant outputs. There is no filler or redundancy.

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, four-parameter tool with no output schema, the description does a good job of summarizing the return shape: cheapest store, median price, best promotion, and per-price freshness. It could say more about currency, store count, or result ordering, but it is complete enough to call 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 lat, lng, barcode, and radius_km are already fully documented with constraints and examples. The description confirms the barcode-driven product focus and nearby scope but does not add syntax, defaults, or edge-case meaning beyond the schema; 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 names a specific resource—prices of one product by barcode—and states the scope clearly: every nearby supermarket. It also enumerates the useful outputs (cheapest store, median price, best promotion, freshness), so an agent can distinguish it from basket comparison, store finding, and product search.

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?

The barcode-by-product and nearby-supermarket framing implies when to use it, but there is no explicit when-to-use or when-not guidance relative to siblings such as compare_basket or search_products. The context is clear enough for a capable agent, but alternatives are left to inference.

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