Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Set up Checkbox for this project

setup_checkbox

Start here when the user says "add Checkbox", "make my subscriptions compliant", or the project is not connected yet. Checkbox checks a subscription business against auto-renewal laws (federal law, 27 states, DC and NYC).

Connected through the Checkbox connector (OAuth): the human already approved in the browser; there is NO key to ask for, paste or save. Call it with site_url (and what else you know): it registers the site and runs the first checks in the same call. Pass what you know from the codebase: site_url, checkout_url, terms/privacy/refund/cancellation URLs, billing_platform, plans, framework, project.layout_file. Checkbox fetches and checks the Terms itself.

Without OAuth or a key: it returns a link for the HUMAN to open and click Approve (free, no card). Show it in one line, then call again with the returned device_code (waits ~50 s; again while pending). The stdio server then saves the key to the git-ignored .env.local; the remote one returns it once: save it there, never commit it or ask for a pasted key.

After this: follow next_action (usually verify the domain and install the snippet, then get_setup_status with verify=true), then get_compliance_plan.

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

Input Schema

NameRequiredDescriptionDefault
liveNoAlso request live-mode keys (live mode activates after domain verification). Default false: test mode only.
agentNoWhich AI agent is doing this, shown to the human on the approval page, e.g. "Claude Code".
plansNoPlans and prices in the code, e.g. [{"name":"Pro","amount":1900,"interval":"month","trial_days":14}]; a promo adds intro_percent_off and intro_periods. They decide which laws apply.
projectNoFacts about the codebase that help Checkbox point tasks at exact files.
verboseNotrue: full JSON
site_urlNoPublic URL of the site (production or a preview), e.g. "https://acme.example".
terms_urlNoTerms of service URL. Checkbox fetches and checks it.
refund_urlNoRefund policy URL.
account_urlNoAccount page where subscribers manage / cancel (null clears a URL).
device_codeNoFrom an earlier setup_checkbox call: poll that browser approval instead of starting a new one.
privacy_urlNoPrivacy policy URL.
checkout_urlNoPricing or checkout page.
merchant_nameNoThe brand subscribers know (names the seller in generated disclosures), e.g. from the <title> or package.json Default: the host name, which the plan asks you to replace.
support_emailNoSupport address for subscribers.
billing_platformNoBilling platform.
cancellation_urlNoSeparate cancellation policy page, if not in the Terms. Not where people cancel (account_url).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / verbose / description
      Previous value: -"true: the full JSON object."New value: +"true: full JSON"
  2. Changed5 schema fields changed
    • changedInput schema / properties / plans / description
      Previous value: -"Plans and prices found in the code, e.g. [{\"name\":\"Pro\",\"amount\":1900,\"currency\":\"usd\",\"interval\":\"month\",\"trial_days\":14}]; a promo adds intro_percent_off and intro_periods. They decide which laws apply."New value: +"Plans and prices in the code, e.g. [{\"name\":\"Pro\",\"amount\":1900,\"interval\":\"month\",\"trial_days\":14}]; a promo adds intro_percent_off and intro_periods. They decide which laws apply."
    • addedInput schema / properties / plans / items / properties / price / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "maxLength": 40,
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / plans / items / properties / price / description
      Previous value: -"Or major units (19 = $19)."New value: +"Major units, or \"$19/mo\"."
    • removedInput schema / properties / plans / items / properties / price / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / plans / items / properties / price / type
      Removed value: -"number"
  3. Changed1 schema field changed
    • changedInput schema / properties / cancellation_url / description
      Previous value: -"Cancellation policy URL, if separate from the Terms."New value: +"Separate cancellation policy page, if not in the Terms. Not where people cancel (account_url)."
  4. Changed6 schema fields changed
    • changedInput schema / properties / checkout_url / description
      Previous value: -"Page where customers subscribe (pricing or checkout page)."New value: +"Pricing or checkout page."
    • changedInput schema / properties / merchant_name / description
      Previous value: -"The brand subscribers know (names the seller in generated disclosures), e.g. from the <title> or package.json (also accepted as \"brand\"). Default: the host name, which the plan then asks you to replace."New value: +"The brand subscribers know (names the seller in generated disclosures), e.g. from the <title> or package.json Default: the host name, which the plan asks you to replace."
    • changedInput schema / properties / plans / description
      Previous value: -"Plans and prices found in the code, e.g. [{\"name\":\"Pro\",\"amount\":1900,\"currency\":\"usd\",\"interval\":\"month\",\"trial_days\":14}]; a promo adds intro_percent_off and intro_periods. They decide which laws apply and what generated copy states."New value: +"Plans and prices found in the code, e.g. [{\"name\":\"Pro\",\"amount\":1900,\"currency\":\"usd\",\"interval\":\"month\",\"trial_days\":14}]; a promo adds intro_percent_off and intro_periods. They decide which laws apply."
    • addedInput schema / properties / plans / items / properties / price
      Added value: +{
      +  "description": "Or major units (19 = $19).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / site_url / description
      Previous value: -"Public URL of the site (production, or a preview deployment), e.g. \"https://acme.example\"."New value: +"Public URL of the site (production or a preview), e.g. \"https://acme.example\"."
    • addedInput schema / properties / verbose
      Added value: +{
      +  "description": "true: the full JSON object.",
      +  "type": "boolean"
      +}
  5. Changed3 schema fields changed
    • changedInput schema / properties / billing_platform / description
      Previous value: -"Billing platform the code uses."New value: +"Billing platform."
    • changedInput schema / properties / billing_platform / enum
      Previous value: -[
      -  "stripe",
      -  "shopify",
      -  "recharge",
      -  "chargebee",
      -  "recurly",
      -  "paddle",
      -  "woocommerce",
      -  "custom"
      -]New value: +[
      +  "stripe",
      +  "shopify",
      +  "recharge",
      +  "chargebee",
      +  "recurly",
      +  "paddle",
      +  "lemon_squeezy",
      +  "woocommerce",
      +  "custom"
      +]
    • changedInput schema / properties / support_email / description
      Previous value: -"Support address subscribers can write to."New value: +"Support address for subscribers."
  6. Changed6 schema fields changed
    • changedInput schema / properties / plans / description
      Previous value: -"Plans and prices found in the code, e.g. [{\"name\":\"Pro\",\"amount\":1900,\"currency\":\"usd\",\"interval\":\"month\",\"trial_days\":14}]. They decide which laws apply (trials, annual terms)."New value: +"Plans and prices found in the code, e.g. [{\"name\":\"Pro\",\"amount\":1900,\"currency\":\"usd\",\"interval\":\"month\",\"trial_days\":14}]; a promo adds intro_percent_off and intro_periods. They decide which laws apply and what generated copy states."
    • addedInput schema / properties / plans / items / properties / intro_amount
      Added value: +{
      +  "description": "Promo first-period price, minor units.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / plans / items / properties / intro_amount_off
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / plans / items / properties / intro_percent_off
      Added value: +{
      +  "exclusiveMaximum": 100,
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / plans / items / properties / intro_periods
      Added value: +{
      +  "maximum": 36,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / plans / items / properties / price_id
      Added value: +{
      +  "description": "Stripe Price id.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  7. Changed16 schema fields changed
    • addedInput schema / properties / account_url / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2048,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / account_url / description
      Previous value: -"Account page where subscribers manage / cancel."New value: +"Account page where subscribers manage / cancel (null clears a URL)."
    • removedInput schema / properties / account_url / maxLength
      Removed value: -2048
    • removedInput schema / properties / account_url / type
      Removed value: -"string"
    • addedInput schema / properties / cancellation_url / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2048,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / cancellation_url / maxLength
      Removed value: -2048
    • removedInput schema / properties / cancellation_url / type
      Removed value: -"string"
    • addedInput schema / properties / privacy_url / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2048,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / privacy_url / maxLength
      Removed value: -2048
    • removedInput schema / properties / privacy_url / type
      Removed value: -"string"
    • addedInput schema / properties / refund_url / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2048,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / refund_url / maxLength
      Removed value: -2048
    • removedInput schema / properties / refund_url / type
      Removed value: -"string"
    • addedInput schema / properties / terms_url / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2048,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / terms_url / maxLength
      Removed value: -2048
    • removedInput schema / properties / terms_url / type
      Removed value: -"string"
  8. Changed2 schema fields changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
    • changedInput schema / properties / merchant_name / description
      Previous value: -"The brand subscribers know (names the seller in generated disclosures), e.g. from the <title> or package.json. Default: the host name, which the plan then asks you to replace."New value: +"The brand subscribers know (names the seller in generated disclosures), e.g. from the <title> or package.json (also accepted as \"brand\"). Default: the host name, which the plan then asks you to replace."
  9. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, openWorldHint=true and idempotentHint=false, so mutation and external-world behavior are already signaled; the description adds real value beyond that with the OAuth approval flow, the ~50 s polling wait, and where the key is persisted (git-ignored .env.local vs one-time return from the remote server). It does not, however, disclose that repeated calls without device_code will register/overwrite project state, and the free/no-card constraint is a partial substitute for a full side-effect account. A 3 is appropriate given annotations already carry the safety profile.

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 the trigger phrases and the core action, then ordered by branch (OAuth path, then no-key path, then what comes after). Dense but every paragraph maps to a decision the caller must make; the key-handling warning earns its place as a safety constraint.

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 16-parameter nested tool with no output schema, the description covers the invocation branches, the credential lifecycle, and the follow-up sequence (verify domain, install snippet, get_setup_status with verify=true). It does not describe what the call returns beyond next_action and the approval link, so an agent lacks the shape of the registration response, but the essential call mechanics 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 description coverage is 100%, so the baseline is 3, but the description adds semantic weight the schema cannot: site_url registration is what triggers the first checks in the same call, and the plans array is noted as the input that decides which laws apply. It also tells the agent to mine the codebase for URLs, billing_platform, plans, framework and project.layout_file, which shapes how parameters should be populated. It says nothing about agent, live or verbose, keeping it from 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?

States a specific verb+resource (registers a site and runs initial compliance checks against auto-renewal laws), names exact trigger phrases, and explicitly positions itself as the entry point ahead of get_setup_status and get_compliance_plan. An agent can distinguish it from setup-adjacent siblings without opening 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 conditions ("Start here when the user says add Checkbox... or the project is not connected yet") plus the branch selection logic: call with site_url when OAuth is present, call again with device_code while pending, then follow next_action and get_setup_status. It names the downstream tools rather than leaving the sequence to inference.

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.