Skip to main content
Glama

Best deals for a brand

get_best_deals_by_brand
Read-onlyIdempotent

Finds where to buy a brand's products with the most savings: returns the matching brands and, for each, the stores carrying it ranked by best current cashback rate, then best gift card discount. Use it when the user names a product brand rather than a specific retailer — 'where is the best cashback for Adidas products?', 'cheapest place to buy Apple products with cashback'. When the user names a retailer ('Nike cashback' meaning the Nike store), call get_cashback_rates_by_store_name instead; for a type of product use get_best_deals_by_category. Returns up to 5 matching brands, best match first; empty when nothing matched. Rates reflect GotCashback's current data, refreshed several times a day. Always show each store's links to the user: best_cashback_rate.url (clickable link that activates the cashback) and gift_cards_url (where to buy the discounted gift cards).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
brand_nameYesThe product brand name, e.g. 'Adidas', 'Dyson', 'LEGO'. Matched case-insensitively at word boundaries of the brand name and its alternate names, best match first; multi-word names fall back to matching individual words.
country_codeNoOptional. Lowercase ISO 3166-1 alpha-2 country code that limits results to one country, e.g. 'us' (United States), 'ca' (Canada), 'gb' (United Kingdom — use 'gb', not 'uk'), 'de' (Germany), 'au' (Australia), 'fr' (France). Pass it when the user names a country ('in Canada', 'UK cashback'); omit it to search all supported countries.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchesNoMatched brands / categories (up to 5, best match first). Empty when nothing matched.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedInput schema / properties / brand_name / description
      Previous value: -"The product brand name, e.g. 'Adidas', 'Dyson', 'LEGO'. Case-insensitive substring match; multi-word names fall back to matching individual words."New value: +"The product brand name, e.g. 'Adidas', 'Dyson', 'LEGO'. Matched case-insensitively at word boundaries of the brand name and its alternate names, best match first; multi-word names fall back to matching individual words."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark the tool readOnly, idempotent, and non-destructive, and the description adds substantial behavior beyond that: result cap ('Returns up to 5 matching brands'), ordering ('best match first'), empty-result behavior, data freshness ('refreshed several times a day'), and a UI requirement ('Always show each store's links to the user'). This is rich, non-redundant context that meaningfully shapes how the agent presents 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?

The description is front-loaded with the core function and ranking logic, and every sentence earns its place — usage routing, return limits, freshness, and link display are all load-bearing. It is a long single paragraph, so a small deduction for scannability; breaking the usage-vs-alternative guidance into bullets would improve structure without adding words.

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?

Given the output schema exists, annotations carry the safety profile, and both parameters are fully documented in the schema, the description covers everything else an agent needs: sibling routing for retailer/category cases, ranking order, match cap, empty results, data recency, and required user-facing output. There are no missing behavioral or routing details.

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%; the schema already documents brand_name matching semantics and country_code format, defaults, and examples thoroughly. The description adds query examples ('Adidas', 'Apple') and implies brand_name is the central parameter, but does not need to compensate since the schema fully documents both parameters. 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 opens with a specific verb and resource: 'Finds where to buy a brand's products with the most savings' and even specifies the ranking logic (cashback rate, then gift card discount). It explicitly names sibling tools it is not ('call get_cashback_rates_by_store_name instead; ... use get_best_deals_by_category'), so an agent can disambiguate without opening schemas.

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

Usage Guidelines5/5

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

The description gives an explicit trigger condition ('Use it when the user names a product brand rather than a specific retailer'), concrete query examples ('where is the best cashback for Adidas products?'), and explicit when-not-to-use routing with named alternatives for both the retailer case and the product-type case. Nothing is left to inference.

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