Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Suggest conversion improvements that keep the checks passing

suggest_improvements
Read-onlyIdempotent

OPTIONAL, after the checks pass: ways to make the checkout, Stripe Checkout, emails and cancellation flow convert or retain better WITHOUT breaking automatic-renewal laws; every after-example passed Checkbox's checks for the merchant's states. Each gives apply.where + apply.content (exact copy, Stripe JSON patch or flow change), preconditions (never apply one whose precondition is false) and guardrails with requirement ids. Never invent figures or add urgency, pre-checked boxes or obstacles. With a site id: from what Checkbox observed. Or send your copy: terms + any of disclosure, page_html, stripe_checkout_session_params, emails, cancellation_flow (as in the check_* tools). Failing surfaces are held (fix them first). Never blocking, never counted toward compliance. After applying one, re-run the check in verification.operation_id.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite id (site_…). Optional when the account has exactly one site in this mode; list_sites shows them.
as_ofNoEvaluate the law as of this date, YYYY-MM-DD (default today).
termsNoThe plan sold (price or amount, interval, trial_days, merchant_name, cancel_url). Required with disclosure or emails.
emailsNoLifecycle emails (as in check_email).
verboseNo
surfacesNoOnly these surfaces.
page_htmlNoRendered checkout page HTML (as in check_page_html).
disclosureNoYour own checkout (as in check_disclosure, plan terms in terms).
other_plansNoOther plans you sell (enables cheaper-plan / plan-choice suggestions).
jurisdictionsNoWhere the business sells: "all" (default) or state codes like ["US-CA","US-NY"] ("CA" works too). Federal law is always included.
trial_remindersNoYou send a trial-ending reminder to every trial subscriber.
cancellation_flowNoYour cancellation flow, one entry per screen from the account page to the confirmation.
stripe_checkout_session_paramsNoExactly what your code passes to stripe.checkout.sessions.create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / disclosure / properties / placement / properties / region_script
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed7 schema fields changed
    • addedInput schema / properties / other_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)."
  4. Changed6 schema fields changed
    • addedInput schema / properties / other_plans / items / properties / intro_percent_off
      Added value: +{
      +  "$ref": "#/properties/terms/properties/intro_percent_off"
      +}
    • addedInput schema / properties / other_plans / items / properties / intro_periods
      Added value: +{
      +  "$ref": "#/properties/terms/properties/intro_periods"
      +}
    • addedInput schema / properties / other_plans / items / properties / intro_price
      Added value: +{
      +  "$ref": "#/properties/terms/properties/intro_price"
      +}
    • 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"
      +}
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses the response contract (each suggestion carries apply.where + apply.content, preconditions, and guardrails with requirement ids), a hard precondition rule ("never apply one whose precondition is false"), and content constraints (no invented figures, urgency, pre-checked boxes, or obstacles). It also clarifies the results are never blocking and never counted toward compliance, which is exactly the behavioral context annotations cannot convey.

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 operative constraint (OPTIONAL, after checks pass) is front-loaded and nearly every clause carries information. Density is high and some sentences run long and read awkwardly ("every after-example passed Checkbox's checks for the merchant's states"), but little is genuinely redundant for a tool with this much conditional behavior.

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 13 optional parameters, nested objects, and no output schema, the description still covers the two invocation modes, the held-surface condition, the shape of returned suggestions, the safety rules for applying them, and the verification step afterward. An agent has everything needed to call it correctly and act on the results.

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 92%, so the baseline is already 3, and the description adds the most important semantic frame the schema cannot: the site-id path versus the self-supplied-copy path, and that supplied artifacts mirror the check_* inputs. It doesn't add meaning for individual fields like as_of, jurisdictions, or verbose beyond the schema, so it stops short of a 5.

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?

Opens with a specific verb and resource ("suggest improvements" for checkout, Stripe Checkout, emails, cancellation flow) and constrains it to conversion/retention gains that don't break automatic-renewal law. It explicitly separates itself from the check_* tools by being optional and post-check, so an agent can pick it without reading any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ("OPTIONAL, after the checks pass"), when-not-to-use ("Failing surfaces are held (fix them first)"), and the two input modes (site id vs. supplying your own copy with terms plus any of disclosure/page_html/stripe_checkout_session_params/emails/cancellation_flow). It also states the follow-up loop: re-run the check in verification.operation_id after applying a suggestion.

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.