Skip to main content
Glama

Best coupon for a shop link

best_offer_for_url
Read-onlyIdempotent

Find the best live coupon code or deal for any store or product link (e.g. https://www.nike.com/t/air-max) or bare domain (nike.com), including checkout pages. Returns the store and its single best offer, plus a few alternatives, and the store's shipping and returns policy when we have 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": {
      "url": "<url>"
    },
    "name": "best_offer_for_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA store or product URL, or a domain.

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?

Annotations already declare this as a read-only, idempotent, non-destructive, closed-world operation, so the description is not needed to establish safety. It still adds useful behavior context beyond them: results are 'live' offers, one best offer is chosen plus alternatives, and shipping/returns policy is included only 'when we have it' — an honest disclosure of partial data availability.

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?

Two sentences, front-loaded with the verb and the result, with no filler. The first sentence is dense with nested parentheticals (example URL, bare-domain example, checkout pages), which slightly taxes readability but each detail carries real input-format guidance.

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 read tool with no output schema and full annotation coverage, the description supplies everything needed: accepted input forms, what is returned (best offer, alternatives, policies), and the caveat that policy data may be absent. Nothing material is left to inference.

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% for the single 'url' parameter, so the baseline is 3. The description does add accepted input variances not spelled out in the schema — a full product link, a bare domain, and checkout pages, with a concrete example — but it offers no detail on resolution behavior when a URL maps to multiple stores.

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 specific verb and outcome ('Find the best live coupon code or deal') plus the exact resource scope (store URL, product URL, bare domain, checkout pages), and it states what comes back ('the store and its single best offer, plus a few alternatives'). It stops short of naming a sibling such as get_store_offers, so the distinction from that tool's full-offer listing is only implicit.

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?

Usage is implied through the accepted input forms — an agent learns it should call this with a shop link rather than an ID or category — but there is no explicit when-to-use/when-not statement and no named alternative for 'show me every offer for this store.'

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