Skip to main content
Glama

Best final price for a product

find_best_price
Read-onlyIdempotent

Find a product (by words such as "dyson v8 vacuum", or by its GTIN/UPC/EAN) in the US stores' own product feeds and get, for each store that sells it, the price, the codes and sales that apply to it, and the final price after the best code. Every promotion says whether it applies (certain | likely | basket = needs a bigger basket | may_apply = vague terms) and why. A final price after a code is given only when the terms clearly cover this item at this price; otherwise the listed price is the final price. Every number carries its evidence: which feed it came from, when the catalog was built, and whether the price was checked on the store page. Same product across stores is matched by GTIN, then brand + MPN or model number, never by a similar name. US stores and USD only for now. Use it when the user wants a specific product cheaply, sets a budget, or asks you to check for discounts on an item.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_best_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
gtinNoOptional barcode number (UPC, EAN or GTIN) instead of words.
limitNoHow many products (default 5, max 10).
queryNoWhat the user wants, in a few words (brand, product, model).
countryNoOptional ISO country code. Only US is covered for now.
max_priceNoOptional budget in USD: only products whose final price is at or under it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, closed-world), the description discloses the promotion confidence taxonomy (certain | likely | basket | may_apply), the conservative rule that a post-code price is only shown when terms clearly cover the item, and that every number carries provenance (which feed, catalog build time, whether the store page was checked). That is exactly the behavior an agent needs to interpret and trust results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and result, with the confidence labels and matching rule following in logical order. It is dense and slightly overlong in places (the clause about price, codes, and final price restates itself), but nearly every sentence carries operational information rather than filler.

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 carries the burden of explaining results, and it does so: per-store pricing, promotion applicability with reasons, final-price conditions, and per-number evidence. What is missing is the concrete response shape (field names, ordering, what happens when a product is found in no store), which would matter for a multi-store aggregation tool.

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 baseline is 3, but the description adds meaningful constraints: the lookup can be driven by words or by GTIN/UPC/EAN, and the whole tool is restricted to US stores and USD, which narrows the `country` parameter beyond its schema note. It does not elaborate on `limit` or how `query` interacts with `gtin` when both are supplied.

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 states a specific verb and resource (find a product in US stores' own feeds) and enumerates exactly what is returned: per-store price, applicable codes/sales, and the final price after the best code. The matching rule (GTIN, then brand + MPN/model, never name similarity) and the US/USD scope make it clearly distinguishable from browsing-style siblings like top_offers_in_category or todays_top_deals.

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 gives explicit triggers: the user wants a specific product cheaply, sets a budget, or asks for discount checks. It also implies when not to use it (only US stores, USD, product-specific lookups rather than store or category browsing), but it never names a sibling alternative such as best_offer_for_url for URL-driven lookups, so the routing is only partly spelled out.

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