Skip to main content
Glama

Find Codes

find_codes
Read-onlyIdempotent

Find promo codes that fit this cart, ranked by verified checkout success only. Coverage (Nov 22, 2026): live guest-cart test results for 20 merchants — Adidas, Best Buy, Chewy, CVS Photo, Dick's Sporting Goods, Fanatics, Home Depot, Kohl's, Macy's, Michaels, Nike, Nordstrom, Sephora, Staples, Target, Ulta Beauty, Under Armour, Walmart, Wayfair, Zappos. 243 codes tested; 5 currently verified across Fanatics, Kohl's, Michaels, and Staples. For a covered merchant with no working code, the verdict is 'no_verified_code' with that merchant's dated test record — a certified negative. The service also holds merchant-published savings facts for the same 20 merchants (83 facts: shipping thresholds, membership discounts, price-match policies, live sales), served in merchant detail responses. Merchants outside the covered set return 'merchant_not_found'.

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": {
      "merchant": "<merchant>"
    },
    "name": "find_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
cartNoThe actual cart context — constraints are checked against it
merchantYesMerchant slug, e.g. 'nike'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / cart / properties / items / description
      Previous value: -"Optional line items (name, category, price, quantity) for cart-precise matching"New value: +"Optional line items for cart-precise matching; each item may carry its category and price"
    • addedInput schema / properties / cart / properties / items / items / properties
      Added value: +{
      +  "category": {
      +    "description": "Line item category, e.g. 'shoes'",
      +    "type": "string"
      +  },
      +  "price": {
      +    "description": "Line item price in the merchant's currency",
      +    "type": "number"
      +  }
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / cart / properties / currency / description
      Added value: +"Currency code for cart.total, e.g. 'USD'"
    • addedInput schema / properties / cart / properties / customer_type / description
      Added value: +"Shopper type: 'any' (default), 'new' or 'returning' — some codes are new-customer only"
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources