Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Run a synthetic test subscription (test mode)

start_test_run

Observes the WHOLE subscription lifecycle in Stripe TEST mode: a test customer (card 4242…, a Checkbox inbox) subscribes; Checkbox waits for the acknowledgment, fast-forwards a test clock through each notice window (collecting reminders), cancels online and waits for the confirmation. Nothing is charged. Needs the site's Stripe TEST restricted key (rk_test_…): store it with store_stripe_test_key; never ask the human to paste a key. Non-Stripe sites: type "generic". When the compliance plan asks for a run and the key is stored, Checkbox starts it automatically (test mode); this tool then returns that run. Takes 1-2 minutes (real_checkout: a few): poll get_test_run with wait: 45. Each step reports observations, checks and fixes; apply them and run again. mode "real_checkout" is the PROOF run: the shopper buys through the merchant's own checkout on its test deployment (stripe.checkout_url or stripe.payment_link), so the merchant's webhook handlers and email code fire; give stripe.test_account + stripe.cancel_url when customers cancel in the app. Several plan buttons: pass plan, or stripe.pre_checkout_steps [{action:"click",text:""}]. A step is "passed" only with evidence; "warning" means needs review. Cancel: stripe.cancel_via "stripe_portal" (default) or "merchant_flow" (cancel_url + cancel_steps; behind a login, test_account { login_url, email, password }).

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

Input Schema

NameRequiredDescriptionDefault
modeNoStripe runs: mirror (default; test clock through every notice window) or real_checkout (the proof run through the merchant's own checkout, webhooks and emails).
planNoPlan to run: a registered checkout config name or a price_… its line_items use.
siteNoSite id (site_…). Optional when the account has exactly one site in this mode; list_sites shows them.
typeNostripe (default when a Stripe test key is stored) or generic (test coupon / test account, no time travel).
cancelNoCancel online at the end (default true).
regionNoState the synthetic shopper visits from, e.g. "US-CA".
stripeNoStripe options.
genericNoGeneric (non-Stripe) options as in the API: checkout_url, checkout_steps, complete_purchase { steps, promo_code }, account { login_url, email, password }, cancel_steps.
verboseNo
cancel_urlNoShortcut for stripe.cancel_url.
advance_timeNoAdvance a Stripe test clock through trial end and first renewal (default true).
cancel_stepsNoShortcut for stripe.cancel_steps.
checkout_urlNoShortcut for stripe.checkout_url (real_checkout: your checkout page on your TEST deployment).
test_accountNoShortcut for stripe.test_account. email "{{inbox}}" uses the run inbox.
checkout_stepsNoShortcut for stripe.checkout_steps (embedded checkout: fill email/card, tick consent, click pay).
email_wait_secondsNoHow long to wait for each email (default 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / stripe / properties / coupon
      Added value: +{
      +  "description": "Mirror: TEST-mode coupon id for the test subscription.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / stripe / properties / promotion_code
      Added value: +{
      +  "description": "Mirror: TEST-mode promotion code (promo_… or code).",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / plan
      Added value: +{
      +  "description": "Plan to run: a registered checkout config name or a price_… its line_items use.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: nothing is charged, the run takes 1-2 minutes (a few for real_checkout), results arrive via get_test_run with wait: 45, and each step emits observations/checks/fixes with "passed" only on evidence and "warning" meaning review needed. It also explains the two modes' differing side effects (real_checkout fires the merchant's own webhooks and email code) and notes that test-account passwords are stored encrypted.

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?

Front-loaded with purpose, then cost/time, then mode-specific detail, so an agent can stop reading early. It is dense and somewhat run-on (semicolon-packed paragraphs, notably the cancel paragraph), and a few clauses restate schema text such as the pre_checkout_steps shape, but almost every sentence carries decision-relevant 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 16-parameter tool with nested objects and no output schema, the description covers prerequisites, runtime, polling path, mode selection, and cancellation options – enough to invoke it correctly. The return payload isn't described in any detail beyond "returns that run" and per-step observations, though it partly delegates that to get_test_run.

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 already 94%, so the schema carries most parameter meaning, but the description adds decision-level context: when to pass plan vs stripe.pre_checkout_steps for multiple plan buttons, which extra fields real_checkout requires (stripe.test_account, stripe.cancel_url), and how cancel_via "merchant_flow" must be paired with cancel_url/cancel_steps and a login test_account. The nested generic options object is only hand-waved ("as in the API"), which keeps it off 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 concrete verb and resource: it starts a run that observes the WHOLE subscription lifecycle in Stripe TEST mode, enumerating the sequence (test customer subscribes, ack wait, clock fast-forward, cancel, confirmation). It also explicitly separates itself from the polling sibling ("this tool then returns that run ... poll get_test_run"), so an agent can distinguish it without reading 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 Guidelines5/5

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

Gives concrete preconditions (needs the site's rk_test_ key stored via store_stripe_test_key, never ask the human to paste one), an alternative path for non-Stripe sites (type "generic"), and the automatic-run situation ("when the compliance plan asks for a run and the key is stored, Checkbox starts it automatically; this tool then returns that run"). It also states what to do after a run (apply fixes and run again) and names get_test_run as the follow-up instead of re-invoking.

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.