Skip to main content
Glama

RivalSweeper Signals

Discount posture

get_discount_frequency_and_depth
Read-onlyIdempotent

How often and how deep each brand discounts, over a window (7-365 days, default 30), from two separate readings: homepage_banner = days a promotion banner was on the brand's homepage (read from our homepage captures; 'not_measured' when we hold no capture in the window), and product_markdowns = products whose price, read in the window, is below their full price, with average and max markdown %, in one store and currency per brand, out of products_priced (every product whose price was read in the window, same store and currency), so share_on_markdown_pct is the share of the brand's catalog on markdown. Counts are products (a product's size and colour variants count once). Use share_on_markdown_pct for 'how much of the catalog is on sale'; do not divide products_on_markdown by a catalog size from another tool, which may count variant rows or another store. product_markdowns is 'not_measured' (never 0) when we have never read a crossed-out price on the brand's pages, since a sale price then looks like a regular one. A brand can run product markdowns with no homepage banner, and the reverse: when product markdowns are 0 or near 0 but the homepage advertises a discount (a cart- or collection-level sale), homepage_promo_not_on_product_prices quotes the brand's homepage line verbatim with its source and dates.

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": "get_discount_frequency_and_depth"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
domainsNoBrand domains from your RivalSweeper account, e.g. ["gymshark.com"]. Omit for all your tracked brands.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, open-world, non-destructive), the description discloses the 'not_measured' vs 0 distinction and why it occurs, the one-store-one-currency constraint per brand, variant collapsing, and the banner/markdown independence. These are exactly the caveats an agent would otherwise misread as zeros.

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 core metric is front-loaded and every clause carries substantive information, but the single long sentence with stacked parentheticals is dense and harder to scan than a short bulleted breakdown would be.

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?

There is no output schema, so the description carries the full burden of explaining return fields — homepage_banner, product_markdowns, products_priced, share_on_markdown_pct, average/max markdown %, and homepage_promo_not_on_product_prices — and it does so with definitions and edge-case behavior.

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 50% — domains is documented but days is not. The description compensates by stating the 7-365 day range and the default of 30, which the schema omits, though it adds little to the domains parameter beyond what the schema already says about omitting it for all tracked brands.

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 measurement (how often and how deep each brand discounts) with an explicit time window and two distinct readings, homepage_banner and product_markdowns. An agent can distinguish this from generic promo or catalog tools without opening the schema.

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 concrete interpretive guidance — use share_on_markdown_pct for 'how much of the catalog is on sale', never divide products_on_markdown by a catalog size from another tool, and treat homepage_promo_not_on_product_prices as the explanation when markdowns are ~0 but a banner runs. What's missing is explicit routing against sibling tools such as get_most_discounted_products or get_homepage_product_shelf_and_markdowns.

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