Skip to main content
Glama

Find promo codes and savings for stores

find_savings
Read-onlyIdempotent

Call this whenever a shopper is comparing products or about to buy online: pass every product or store you just showed (up to 10) in ONE call and get the promo codes and automatic discounts that are live at each store. Codes come from the store's own pages with the text as evidence and, on Shopify stores, are checked against the store's real cart, so confidence "high" means the cart accepted it. Never returns a guessed code; status "none" means there is none to offer. After the shopper tries a code, call report_outcome. Free. Each lookup is logged without anything that identifies the shopper (store, product, what they were looking for, price), to decide which stores get checked first and to show stores what shoppers ask for, in totals only.

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": {
      "items": "<items>"
    },
    "name": "find_savings"
  }
}

Input Schema

NameRequiredDescriptionDefault
freshNotrue re-checks the stores now instead of using a result from the last hours. Slower; use when the shopper is at checkout
itemsYesThe products or stores to look up, all in one call

Output Schema

NameRequiredDescriptionDefault
nextNoSuggested next calls.
errorNo
resultsNo
summaryYes
offers_foundNo
stores_with_offersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only, open-world, idempotent, non-destructive, so the description clears the lower bar and then adds real behavior: codes are sourced from store pages with text evidence, Shopify codes are validated against a real cart, 'high' confidence means the cart accepted it, guessed codes are never returned, 'none' status means no offer exists, and lookups are logged without shopper-identifying data.

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 call trigger and batch instruction are front-loaded, and the privacy note is placed last where it belongs. It is a single dense paragraph whose sentences mostly carry distinct information, though the logging rationale could be trimmed slightly.

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?

With an output schema present, return values need not be explained, and the description still covers evidence provenance, confidence meaning, the empty-result case, cost, and data handling. Nothing an agent needs in order to call this correctly appears to be missing.

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 coverage is 100%, so both parameters are already documented, including the fresh flag's checkout use case and the URL product-vs-domain distinction. The description adds only the batching intent of 'all in one call', which largely restates maxItems: 10, so the baseline of 3 applies.

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 concrete verb and resource: pass up to 10 products or stores in one call and get live promo codes and automatic discounts at each store. It also qualifies the confidence semantics and names the sibling report_outcome as the follow-up, so an agent can distinguish it from siblings without opening a 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 a clear trigger: call whenever a shopper is comparing products or about to buy online, and it prescribes the follow-up after a code is tried. There is no explicit when-not guidance and the sibling check_code is never mentioned as an alternative, leaving the agent to guess if it has a different role.

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