Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Check a checkout / pricing page (HTML or URL)

check_page_html
Read-onlyIdempotent

Checks a whole checkout or pricing page: finds the purchase button, the renewal disclosure, consent checkboxes and terms/cancel links, and evaluates them. Send html = the RENDERED page (after JavaScript; for React/Next pages, render it or paste the server output) — this is how to check a page before deploying. Or send url to fetch a public page (live keys; test keys: your registered site's origin). Static HTML cannot measure styling, so placement/styling passes come back as needs_review until a scan confirms; failures are real. When it fails, replacement holds verified drop-in markup.

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

Input Schema

NameRequiredDescriptionDefault
urlNoPublic page URL to fetch instead.
htmlNoRendered checkout page HTML. Give html or url.
siteNoYour site_…: judge it as verify_task does (the site's Stripe-checked plans).
as_ofNoEvaluate the law as of this date, YYYY-MM-DD (default today).
plansNoMulti-plan pricing page: EVERY plan it sells (price, interval, trial_days each). Each plan card is judged against its own plan; plan_replacements gives each plan its own markup for its own button.
termsNoThe plan sold on the page. merchant_name / cancel_url alone are fine (no price compared).
verboseNo
page_kindNoDefault checkout.
checkout_typeNoWhere shoppers pay (default: inferred).
jurisdictionsNoWhere the business sells: "all" (default) or state codes like ["US-CA","US-NY"] ("CA" works too). Federal law is always included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Live public page URL to fetch instead (live, activated accounts)."New value: +"Public page URL to fetch instead."
  3. Changed1 schema field changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
  4. Changed7 schema fields changed
    • addedInput schema / properties / plans / items / properties / brand_name
      Added value: +{
      +  "$ref": "#/properties/terms/properties/brand_name"
      +}
    • changedInput schema / properties / terms / properties / amount / description
      Previous value: -"Recurring price in MINOR units, Stripe style: 1999 = $19.99."New value: +"Or minor units (1999 = $19.99)."
    • addedInput schema / properties / terms / properties / brand_name
      Added value: +{
      +  "description": "Alias of merchant_name.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / properties / terms / properties / cancel_url / description
      Previous value: -"https URL where subscribers cancel online. Strongly recommended: generated text uses it."New value: +"https URL where subscribers cancel online (used in generated text)."
    • changedInput schema / properties / terms / properties / interval / description
      Previous value: -"Billing interval: \"day\", \"week\", \"month\" or \"year\"."New value: +"Billing interval: day, week, month or year."
    • changedInput schema / properties / terms / properties / interval_count / description
      Previous value: -"Intervals between charges (default 1; 3 + month = quarterly)."New value: +"Default 1; 3 + month = quarterly."
    • changedInput schema / properties / terms / properties / price / description
      Previous value: -"Recurring price in MAJOR units, e.g. 19.99. Or give amount."New value: +"Recurring price, major units (19.99)."
  5. Changed2 schema fields changed
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Your site_…: judge it as verify_task does (the site's Stripe-checked plans).",
      +  "maxLength": 100,
      +  "type": "string"
      +}
    • changedInput schema / properties / terms / description
      Previous value: -"The plan sold on the page (helps judge price / interval statements). merchant_name / cancel_url alone are fine (no price compared)."New value: +"The plan sold on the page. merchant_name / cancel_url alone are fine (no price compared)."
  6. Changed1 schema field changed
    • addedInput schema / properties / checkout_type
      Added value: +{
      +  "description": "Where shoppers pay (default: inferred).",
      +  "enum": [
      +    "own_page",
      +    "stripe_checkout",
      +    "payment_link"
      +  ],
      +  "type": "string"
      +}
  7. Changed4 schema fields changed
    • removedInput schema / properties / plans / items / $ref
      Removed value: -"#/properties/terms"
    • addedInput schema / properties / plans / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / plans / items / properties
      Added value: +{
      +  "amount": {
      +    "$ref": "#/properties/terms/properties/amount"
      +  },
      +  "cancel_timing": {
      +    "$ref": "#/properties/terms/properties/cancel_timing"
      +  },
      +  "cancel_url": {
      +    "$ref": "#/properties/terms/properties/cancel_url"
      +  },
      +  "currency": {
      +    "$ref": "#/properties/terms/properties/currency"
      +  },
      +  "interval": {
      +    "$ref": "#/properties/terms/properties/interval"
      +  },
      +  "interval_count": {
      +    "$ref": "#/properties/terms/properties/interval_count"
      +  },
      +  "intro_percent_off": {
      +    "$ref": "#/properties/terms/properties/intro_percent_off"
      +  },
      +  "intro_periods": {
      +    "$ref": "#/properties/terms/properties/intro_periods"
      +  },
      +  "intro_price": {
      +    "$ref": "#/properties/terms/properties/intro_price"
      +  },
      +  "merchant_name": {
      +    "$ref": "#/properties/terms/properties/merchant_name"
      +  },
      +  "plan_name": {
      +    "$ref": "#/properties/terms/properties/plan_name"
      +  },
      +  "price": {
      +    "$ref": "#/properties/terms/properties/price"
      +  },
      +  "trial_days": {
      +    "$ref": "#/properties/terms/properties/trial_days"
      +  }
      +}
    • addedInput schema / properties / plans / items / type
      Added value: +"object"
  8. Changed3 schema fields changed
    • addedInput schema / properties / terms / properties / intro_percent_off
      Added value: +{
      +  "description": "Or the promo as % off (coupon percent_off).",
      +  "exclusiveMaximum": 100,
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / terms / properties / intro_periods
      Added value: +{
      +  "description": "Billing periods the promo lasts (default 1).",
      +  "maximum": 36,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / terms / properties / intro_price
      Added value: +{
      +  "description": "Promo first-period price, major units ($8 → 8).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  9. Changed2 schema fields changed
    • addedInput schema / properties / plans
      Added value: +{
      +  "description": "Multi-plan pricing page: EVERY plan it sells (price, interval, trial_days each). Each plan card is judged against its own plan; plan_replacements gives each plan its own markup for its own button.",
      +  "items": {
      +    "$ref": "#/properties/terms"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • changedInput schema / properties / terms / description
      Previous value: -"The plan sold on the page (helps judge price / interval statements)."New value: +"The plan sold on the page (helps judge price / interval statements). merchant_name / cancel_url alone are fine (no price compared)."
  10. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description correctly spends its words elsewhere: it discloses the needs_review vs real-failure distinction for styling/placement, and that failures return verified drop-in replacement markup. It also notes the live-key / registered-site-origin constraint for URL mode. What it does not cover is cost, latency, or response shape beyond the replacement-markup note.

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?

Four sentences, front-loaded with purpose, then the html/url split, then the result semantics. Dense parentheticals ('after JavaScript; for React/Next pages...') slow it slightly, but almost every clause carries actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with a nested plans/terms object and no output schema, the description covers the input modes, the failure/review semantics, and what is returned on failure. The full response structure is still undocumented, but the critical decision points an agent needs before calling it are present.

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 90%, so the baseline is 3; the description earns an extra point by clarifying semantics the schema cannot: html must be the RENDERED page, not static source, and url mode requires a public page with matching key/site-origin rules. The terms/plans/page_kind parameters are left entirely to the already-detailed schema.

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 opens with a specific verb and resource ('Checks a whole checkout or pricing page') and enumerates exactly what it evaluates: purchase button, renewal disclosure, consent checkboxes, terms/cancel links. The 'whole page' framing implicitly separates it from narrower siblings like check_disclosure or check_stripe_checkout_session, so an agent can select it 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 usage context: use it before deploying, send rendered HTML for React/Next pages, or send a URL for a public page with the live-vs-test key caveat. What is missing is any explicit exclusion or named alternative ('use check_disclosure for a single disclosure'), so the agent must infer when a sibling is the better choice.

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.