Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Check Stripe Checkout Session params (returns corrected params)

check_stripe_checkout_session
Read-onlyIdempotent

Before shipping Stripe Checkout code: pass, as params, EXACTLY the object your code passes to stripe.checkout.sessions.create (mode "subscription"). Checkbox evaluates it against automatic-renewal laws and returns correction.corrected_params — the full params with the fix applied, ready to paste — plus an RFC 6902 JSON patch and before/after verification per check. With a Price id (price_…) in line_items, pass site (its plans are used) or merchant { price, interval, trial_days, merchant_name, cancel_url }. Note: Stripe styles custom_text itself, so "clear and conspicuous" stays needs_review here; the plan shows it as a note, never a fix.

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": {
      "params": "<params>"
    },
    "name": "check_stripe_checkout_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoWith site: plan name or price_…
siteNosite_…: its plans fill terms you leave out
as_ofNoEvaluate the law as of this date, YYYY-MM-DD (default today).
paramsYesThe Checkout Session params object, e.g. {"mode":"subscription","line_items":[{"price":"price_123","quantity":1}],"success_url":"https://acme.example/welcome"}.
verboseNo
merchantNoWhat the params do not say: merchant_name, cancel_url, and price/interval when line_items use a Price id.
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
    • 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. Changed1 schema field changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
  4. Changed6 schema fields changed
    • changedInput schema / properties / merchant / 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 / merchant / properties / brand_name
      Added value: +{
      +  "description": "Alias of merchant_name.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / properties / merchant / 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 / merchant / properties / interval / description
      Previous value: -"Billing interval: \"day\", \"week\", \"month\" or \"year\"."New value: +"Billing interval: day, week, month or year."
    • changedInput schema / properties / merchant / properties / interval_count / description
      Previous value: -"Intervals between charges (default 1; 3 + month = quarterly)."New value: +"Default 1; 3 + month = quarterly."
    • changedInput schema / properties / merchant / 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 / 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"
      +}
  6. Changed3 schema fields changed
    • addedInput schema / properties / merchant / properties / intro_percent_off
      Added value: +{
      +  "description": "Or the promo as % off (coupon percent_off).",
      +  "exclusiveMaximum": 100,
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / merchant / properties / intro_periods
      Added value: +{
      +  "description": "Billing periods the promo lasts (default 1).",
      +  "maximum": 36,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / merchant / properties / intro_price
      Added value: +{
      +  "description": "Promo first-period price, major units ($8 → 8).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  7. 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 (read-only, idempotent, non-destructive, closed-world), and the description adds genuinely new behavior: the return contains correction.corrected_params ready to paste, an RFC 6902 JSON patch, and before/after verification per check. It also discloses a real limitation — Stripe styles custom_text itself, so 'clear and conspicuous' stays needs_review and is only shown as a note — which prevents the agent from misreading a non-fix as a failure. It does not describe behavior on malformed or unsupported params.

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 the key instruction and limited to four purposeful sentences, each covering input contract, output shape, the site/merchant branch, and the caveat. The merchant key enumeration partly duplicates the schema and the Price-id sentence is syntactically dense, costing a point.

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 7-param tool with nested objects and no output schema, the description carries the needed load: it explains the required input, the fallback source of terms, and precisely what comes back (corrected_params, JSON patch, per-check verification). The main remaining gap is the absence of any error/failure semantics or note on how strict validation is.

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?

With 86% schema coverage the baseline is 3, but the description earns more by explaining the relationship the schema cannot: when line_items uses a Price id, the terms must come from site (its plans supply them) or merchant. The listed merchant fields (price, interval, trial_days, merchant_name, cancel_url) are a partial restatement of schema properties, but the site/merchant-vs-Price-id rule is real added meaning.

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 concrete verb and resource: pass the exact params object given to stripe.checkout.sessions.create and get it evaluated against automatic-renewal laws. The title and description together make the input/output contract unmistakable, and no sibling in the list performs Stripe Checkout parameter correction, so the tool is clearly distinguishable.

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?

The preamble 'Before shipping Stripe Checkout code' gives a clear trigger point, and the description says to pass EXACTLY the object the code passes, which sets a precise usage contract. It also gives the conditional branch (with a price_… id, pass site or merchant). It stops short of naming an alternative tool or stating when not to use it.

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.