Skip to main content
Glama

Checkout Promo Codes

checkout_active_promo_code_finder
Read-only

Coupon code candidates published in the homepage metadata of a shop, with the source text. Codes are not verified at checkout. $0.01 per non-empty result. Useful for collecting possible discounts before checkout; prices and stock: universal_product_url_to_json. Does not apply coupons or place an order.

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": {
      "domain": "<domain>"
    },
    "name": "checkout_active_promo_code_finder"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesHostname only, e.g. stripe.com; not a keyword or placeholder.
contextNoOptional. A few words on why you are calling this tool. Recorded without your identity to improve the tools; leave out personal data.
product_categoryNoOptional category context for the supplied store; does not guarantee category-specific or checkout-verified coupons.

Output Schema

NameRequiredDescriptionDefault
codeNo
domainNo
statusNo
sandboxNo
limitationsNo
active_codesNo
error_reasonNo
promos_foundNo
sources_checkedNo
best_offer_summaryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / domain / description
      Previous value: -"Public domain without scheme, path or port."New value: +"Hostname only, e.g. stripe.com; not a keyword or placeholder."
  2. Changed3 schema fields changed
    • removedOutput schema / anyOf
      Removed value: -[
      -  {
      -    "description": "Only status=ok is charged. Diagnostic results may omit result fields; unknown facts are null.",
      -    "properties": {
      -      "active_codes": {
      -        "items": {
      -          "properties": {
      -            "checkout_verified": {
      -              "type": "boolean"
      -            },
      -            "code": {
      -              "type": "string"
      -            },
      -            "confidence": {
      -              "maximum": 1,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "discount_description": {
      -              "type": "string"
      -            },
      -            "promo_landing_url": {
      -              "type": "string"
      -            },
      -            "source": {
      -              "enum": [
      -                "seo_meta"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "discount_description",
      -            "source",
      -            "promo_landing_url",
      -            "confidence",
      -            "checkout_verified"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "best_offer_summary": {
      -        "type": "string"
      -      },
      -      "domain": {
      -        "type": "string"
      -      },
      -      "error_reason": {
      -        "type": "string"
      -      },
      -      "limitations": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "promos_found": {
      -        "type": "boolean"
      -      },
      -      "sandbox": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "demo_domain": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "demo_domain",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "sources_checked": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "enum": [
      -          "ok",
      -          "no_data",
      -          "unreachable"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "domain",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "status": {
      -        "maximum": 599,
      -        "minimum": 400,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedOutput schema / description
      Added value: +"Fields only; full schema in GET /v1/catalog."
    • addedOutput schema / properties
      Added value: +{
      +  "active_codes": {},
      +  "best_offer_summary": {},
      +  "code": {},
      +  "domain": {},
      +  "error_reason": {},
      +  "limitations": {},
      +  "promos_found": {},
      +  "sandbox": {},
      +  "sources_checked": {},
      +  "status": {}
      +}
  3. Changed3 schema fields changed
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "description": "Only status=ok is charged. Diagnostic results may omit result fields; unknown facts are null.",
      +    "properties": {
      +      "active_codes": {
      +        "items": {
      +          "properties": {
      +            "checkout_verified": {
      +              "type": "boolean"
      +            },
      +            "code": {
      +              "type": "string"
      +            },
      +            "confidence": {
      +              "maximum": 1,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "discount_description": {
      +              "type": "string"
      +            },
      +            "promo_landing_url": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "enum": [
      +                "seo_meta"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "discount_description",
      +            "source",
      +            "promo_landing_url",
      +            "confidence",
      +            "checkout_verified"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "best_offer_summary": {
      +        "type": "string"
      +      },
      +      "domain": {
      +        "type": "string"
      +      },
      +      "error_reason": {
      +        "type": "string"
      +      },
      +      "limitations": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "promos_found": {
      +        "type": "boolean"
      +      },
      +      "sandbox": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "demo_domain": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "demo_domain",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "sources_checked": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "enum": [
      +          "ok",
      +          "no_data",
      +          "unreachable"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "domain",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "code": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "status": {
      +        "maximum": 599,
      +        "minimum": 400,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / description
      Removed value: -"Fields only; full schema in GET /v1/catalog."
    • removedOutput schema / properties
      Removed value: -{
      -  "active_codes": {},
      -  "best_offer_summary": {},
      -  "code": {},
      -  "domain": {},
      -  "error_reason": {},
      -  "limitations": {},
      -  "promos_found": {},
      -  "sandbox": {},
      -  "sources_checked": {},
      -  "status": {}
      -}
  4. Changed3 schema fields changed
    • removedOutput schema / anyOf
      Removed value: -[
      -  {
      -    "description": "Only status=ok is charged. Diagnostic results may omit result fields; unknown facts are null.",
      -    "properties": {
      -      "active_codes": {
      -        "items": {
      -          "properties": {
      -            "checkout_verified": {
      -              "type": "boolean"
      -            },
      -            "code": {
      -              "type": "string"
      -            },
      -            "confidence": {
      -              "maximum": 1,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "discount_description": {
      -              "type": "string"
      -            },
      -            "promo_landing_url": {
      -              "type": "string"
      -            },
      -            "source": {
      -              "enum": [
      -                "seo_meta"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "discount_description",
      -            "source",
      -            "promo_landing_url",
      -            "confidence",
      -            "checkout_verified"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "best_offer_summary": {
      -        "type": "string"
      -      },
      -      "domain": {
      -        "type": "string"
      -      },
      -      "error_reason": {
      -        "type": "string"
      -      },
      -      "limitations": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "promos_found": {
      -        "type": "boolean"
      -      },
      -      "sandbox": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "demo_domain": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "demo_domain",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "sources_checked": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "enum": [
      -          "ok",
      -          "no_data",
      -          "unreachable"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "domain",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "status": {
      -        "maximum": 599,
      -        "minimum": 400,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedOutput schema / description
      Added value: +"Fields only; full schema in GET /v1/catalog."
    • addedOutput schema / properties
      Added value: +{
      +  "active_codes": {},
      +  "best_offer_summary": {},
      +  "code": {},
      +  "domain": {},
      +  "error_reason": {},
      +  "limitations": {},
      +  "promos_found": {},
      +  "sandbox": {},
      +  "sources_checked": {},
      +  "status": {}
      +}
  5. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "description": "Only status=ok is charged. Diagnostic results may omit result fields; unknown facts are null.",
      -    "properties": {
      -      "active_codes": {
      -        "items": {
      -          "properties": {
      -            "checkout_verified": {
      -              "type": "boolean"
      -            },
      -            "code": {
      -              "type": "string"
      -            },
      -            "confidence": {
      -              "maximum": 1,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "discount_description": {
      -              "type": "string"
      -            },
      -            "promo_landing_url": {
      -              "type": "string"
      -            },
      -            "source": {
      -              "enum": [
      -                "seo_meta"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "discount_description",
      -            "source",
      -            "promo_landing_url",
      -            "confidence",
      -            "checkout_verified"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "best_offer_summary": {
      -        "type": "string"
      -      },
      -      "domain": {
      -        "type": "string"
      -      },
      -      "error_reason": {
      -        "type": "string"
      -      },
      -      "limitations": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "promos_found": {
      -        "type": "boolean"
      -      },
      -      "sources_checked": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "enum": [
      -          "ok",
      -          "no_data",
      -          "unreachable"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "domain",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "status": {
      -        "maximum": 599,
      -        "minimum": 400,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Only status=ok is charged. Diagnostic results may omit result fields; unknown facts are null.",
      +    "properties": {
      +      "active_codes": {
      +        "items": {
      +          "properties": {
      +            "checkout_verified": {
      +              "type": "boolean"
      +            },
      +            "code": {
      +              "type": "string"
      +            },
      +            "confidence": {
      +              "maximum": 1,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "discount_description": {
      +              "type": "string"
      +            },
      +            "promo_landing_url": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "enum": [
      +                "seo_meta"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "discount_description",
      +            "source",
      +            "promo_landing_url",
      +            "confidence",
      +            "checkout_verified"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "best_offer_summary": {
      +        "type": "string"
      +      },
      +      "domain": {
      +        "type": "string"
      +      },
      +      "error_reason": {
      +        "type": "string"
      +      },
      +      "limitations": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "promos_found": {
      +        "type": "boolean"
      +      },
      +      "sandbox": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "demo_domain": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "demo_domain",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "sources_checked": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "enum": [
      +          "ok",
      +          "no_data",
      +          "unreachable"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "domain",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "code": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "status": {
      +        "maximum": 599,
      +        "minimum": 400,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code"
      +    ],
      +    "type": "object"
      +  }
      +]
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint and openWorldHint, the description discloses the two facts an agent most needs: results are candidates from homepage metadata and are NOT verified at checkout, and each non-empty result costs $0.01. It also states the source text is returned and that nothing is applied or ordered. This is exactly the kind of cost and reliability caveat annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what the tool returns, then caveat, then price, then routing to the sibling, then exclusions. Every clause carries distinct information and there is no filler or repetition.

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 handling return shape and annotations covering read-only/open-world safety, the description fills the remaining gaps: extraction source, verification status, per-result cost, and the explicit non-actions. An agent has everything needed to decide to call it and to interpret the results.

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%, with domain, context, and product_category each documented in-line, so the baseline is 3. The description adds no further parameter meaning, and its note that candidates are not category-guaranteed largely restates what the product_category schema description already says.

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 precise resource and scope: coupon code candidates scraped from a shop's homepage metadata, returned with the source text. It clearly distinguishes itself from universal_product_url_to_json (prices/stock) and from any coupon-application behavior. It stops short of a 5 only because the action verb is implied by the tool name rather than stated in the description.

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?

'Useful for collecting possible discounts before checkout' gives a concrete usage context, and the pointer to universal_product_url_to_json for prices and stock routes the agent away for a related but different need. 'Does not apply coupons or place an order' sets explicit negative boundaries. It does not name a condition under which a different code-finding source should be preferred, which keeps it below 5.

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.