Skip to main content
Glama

Where to buy a chosen product

comparar_precios
Read-onlyIdempotent

Use this when the user has already chosen a product (or a few) and wants to know where to buy it or to compare its price across shops: for example after you recommended a model. Pass each product as brand + model, the way it is sold (e.g. 'Cecotec Conga 3790', 'Bosch GSB 18V-55'), or its EAN/GTIN barcode if you know it (exact match); up to 5 products in one call. For each product, coincidencia is 'exacta' (SeeStocks has that product: ofertas lists every Spanish online shop that sells it, cheapest first, with price, shipping (envio_eur null = unknown, not free), total and link, plus the 90-day price historial), 'aproximada' (no exact match: candidatos may be other products, never present them as the requested one unless the name clearly matches) or 'no_encontrado' (say SeeStocks does not have it). Prices in euros.

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": {
      "productos": "<productos>"
    },
    "name": "comparar_precios"
  }
}

Input Schema

NameRequiredDescriptionDefault
productosYes1 to 5 products: brand + model, or EAN/GTIN.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial behavior beyond them: the three `coincidencia` outcomes and what each means, that `ofertas` is Spanish-only and sorted cheapest first, that `envio_eur` null means unknown rather than free, the 90-day `historial`, and the presentation rule not to pass `candidatos` off as the requested product. This is exactly the context an agent needs to interpret results honestly.

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 dense paragraph, front-loaded with the usage trigger, then input format, then result semantics. Every clause carries information (limits, null handling, presentation caveats); there is no filler or repetition.

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 one-parameter lookup tool with an output schema, the definition covers trigger, input format, edge cases (no match, approximate match), result-field meaning and currency. Nothing needed to call it correctly or interpret the answer is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the single `productos` parameter is already documented; the description still earns credit by giving concrete format examples ('Cecotec Conga 3790', 'Bosch GSB 18V-55') and by explaining that an EAN/GTIN yields an exact match while name matching is fuzzy — a semantic distinction the schema does not convey.

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 — finding where to buy an already-chosen product and comparing its price across shops — and the qualifier 'the user has already chosen a product (or a few)... for example after you recommended a model' clearly separates it from a discovery/search tool like buscar_productos. Input shape (brand + model or EAN) is stated up front.

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 an explicit trigger condition: use it when the user already has a product and wants purchase options or a price comparison. It implies the exclusion (this is post-selection, not browsing) but never names a sibling tool or spells out a when-not case, so it stops just short of a full routing rule.

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.