Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Check checkout disclosure text

check_disclosure
Read-onlyIdempotent

Before shipping a checkout: checks the renewal disclosure next to the purchase button against every applicable law and returns per-check verdicts with citations plus a verified REPLACEMENT (disclosure_text, consent_label, button_text, drop-in html and jsx). Pass the text exactly as rendered plus the plan terms. Example: {"text":"Renews monthly at $19.99 until you cancel.","price":19.99,"interval":"month","cancel_url":"https://acme.example/account/cancel","consent":{"checkbox":true,"prechecked":false}}. If verdict is fail, put replacement.jsx (React) or .html above the button, then call again with the new text, consent and placement.bold: true. Styling needs_review: a scan confirms.

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": {
      "text": "<text>"
    },
    "name": "check_disclosure"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoWith site: plan name or price_…
siteNosite_…: its plans fill terms you leave out
textYesThe disclosure shown next to the purchase button, exactly as rendered.
as_ofNoEvaluate the law as of this date, YYYY-MM-DD (default today).
priceNoRecurring price, major units (19.99).
amountNoOr minor units (1999 = $19.99).
consentNoThe consent checkbox, if any.
verboseNo
currencyNoISO currency, default "usd".
intervalNoBilling interval: day, week, month or year (optional with site).
placementNoDefaults: above the button, same page, 14px, high contrast.
plan_nameNoPlan / product name, e.g. "Pro".
brand_nameNoAlias of merchant_name.
cancel_urlNohttps URL where subscribers cancel online (used in generated text).
trial_daysNoFree-trial days (0 or absent = no trial).
button_textNoPurchase button label, e.g. "Start free trial".
intro_priceNoPromo first-period price, major units ($8 → 8).
cancel_timingNoWhen a cancellation takes effect (default period_end).
checkout_typeNoStripe-hosted: no box here
intro_periodsNoBilling periods the promo lasts (default 1).
jurisdictionsNoWhere the business sells: "all" (default) or state codes like ["US-CA","US-NY"] ("CA" works too). Federal law is always included.
merchant_nameNoBrand shown to subscribers, e.g. "Acme".
order_summaryNoOther text next to the button (order summary), if any.
interval_countNoDefault 1; 3 + month = quarterly.
intro_percent_offNoOr the promo as % off (coupon percent_off).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / site / description
      Previous value: -"site_… whose plans judge it (as verify_task)"New value: +"site_…: its plans fill terms you leave out"
  2. Changed1 schema field changed
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / checkout_type
      Added value: +{
      +  "description": "Stripe-hosted: no box here",
      +  "enum": [
      +    "own_page",
      +    "stripe_checkout",
      +    "payment_link"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / consent / description
      Previous value: -"The consent checkbox, if the page has one. Omit when there is none."New value: +"The consent checkbox, if any."
    • changedInput schema / properties / placement / description
      Previous value: -"Where and how the disclosure is shown (defaults: above the button, same page, 14px, high contrast)."New value: +"Defaults: above the button, same page, 14px, high contrast."
  4. Changed4 schema fields changed
    • changedInput schema / properties / interval / description
      Previous value: -"Billing interval: day, week, month or year."New value: +"Billing interval: day, week, month or year (optional with site)."
    • addedInput schema / properties / plan
      Added value: +{
      +  "description": "With site: plan name or price_…",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "site_… whose plans judge it (as verify_task)",
      +  "maxLength": 100,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "text",
      -  "interval"
      -]New value: +[
      +  "text"
      +]
  5. Changed1 schema field changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
  6. Changed6 schema fields changed
    • changedInput schema / 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 / brand_name
      Added value: +{
      +  "description": "Alias of merchant_name.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / 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 / interval / description
      Previous value: -"Billing interval: \"day\", \"week\", \"month\" or \"year\"."New value: +"Billing interval: day, week, month or year."
    • changedInput schema / properties / interval_count / description
      Previous value: -"Intervals between charges (default 1; 3 + month = quarterly)."New value: +"Default 1; 3 + month = quarterly."
    • changedInput schema / 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)."
  7. Changed3 schema fields changed
    • addedInput schema / properties / intro_percent_off
      Added value: +{
      +  "description": "Or the promo as % off (coupon percent_off).",
      +  "exclusiveMaximum": 100,
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / intro_periods
      Added value: +{
      +  "description": "Billing periods the promo lasts (default 1).",
      +  "maximum": 36,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / intro_price
      Added value: +{
      +  "description": "Promo first-period price, major units ($8 → 8).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  8. First observed

TDQS

A3.9/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, closed-world), and the description adds real value on top: it enumerates the return payload (disclosure_text, consent_label, button_text, html, jsx) and discloses that styling verdicts come back as needs_review pending a scan. It does not state any rate limits or latency, but nothing it says conflicts with the annotations.

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?

Three short paragraphs, purpose front-loaded, followed by an input example and the fail-remediation step, with no filler. The trailing 'Styling needs_review: a scan confirms.' is telegraphic enough to be slightly ambiguous, but it is not padding.

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 25-parameter tool with nested objects and no output schema, the description does the necessary heavy lifting: it explains the return shape, the remediation artifact and the re-check loop. It is not exhaustive about optional term parameters, but the schema covers those at 96% coverage, so nothing an agent needs in order to invoke it correctly is 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 96%, so the schema already documents nearly every field and the baseline is 3. The worked example plus 'pass the text exactly as rendered' clarifies the intent of the text/price/interval/consent relationship, but of 25 parameters the description only illustrates a handful, leaving the site, plan, jurisdictions and as_of interplay to the schema.

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 specific verb and resource ('checks the renewal disclosure next to the purchase button against every applicable law') and states what comes back (per-check verdicts with citations plus a replacement). It is clearly scoped to checkout disclosures, which implicitly separates it from page/email scanners, but it never names an alternative sibling to sharpen that boundary.

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 an explicit usage trigger ('Before shipping a checkout') and a remediation loop: if the verdict is fail, place replacement.jsx/.html above the button, then re-invoke with the new text, consent and placement.bold. What is missing is a when-not clause or a pointer to alternatives such as check_page_html for full-page review.

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.