Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Generate a disclosure that passes the checks for given terms

get_compliant_disclosure
Idempotent

Generates the locked, engine-verified automatic-renewal disclosure for a plan: disclosure_text (ends with the consent sentence; keep your button label; a checkbox only if the result says so), consent_label, html. Terms: price or amount, interval, trial_days, cancel_url, merchant_name, promo (intro_price or intro_percent_off, intro_periods). Example: {"merchant_name":"Acme","price":19.99,"interval":"month","trial_days":14,"cancel_url":"https://acme.example/cancel"}. With site (and a key that may create disclosures), it also returns the Elements snippet (script tag, , React usage) that records each consent.

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

Input Schema

NameRequiredDescriptionDefault
planNo
siteNoSite id (site_…) to also get the Elements snippet for.
priceNoRecurring price, major units (19.99).
amountNoOr minor units (1999 = $19.99).
verboseNo
currencyNoISO currency, default "usd".
intervalNoBilling interval.
merchantNo
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).
intro_priceNoPromo first-period price, major units ($8 → 8).
cancel_timingNoWhen a cancellation takes effect (default period_end).
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".
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
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / merchant
      Added value: +{
      +  "additionalProperties": {},
      +  "type": "object"
      +}
    • addedInput schema / properties / plan
      Added value: +{
      +  "additionalProperties": {},
      +  "type": "object"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "interval"
      -]
  3. Changed5 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_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)."
  4. 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"
      +}
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description discloses meaningful behavior: the returned text is "locked" and must be reproduced verbatim (keep your own button label, use a checkbox only if the result permits), and passing site with a capable key will additionally create disclosure records and return an Elements snippet. That side-effect disclosure is exactly the kind of context annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true) 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?

Front-loaded with the verb and the three output fields, then inputs, then an example, then the conditional site behavior — a sensible ordering with no filler sentences. Some phrasings are terse to the point of being cryptic ("a checkbox only if the result says so"), which costs it the top score.

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 an 18-parameter generator with no output schema, the description carries its weight by enumerating the returned fields and the conditional Elements snippet, and by grouping which inputs are required. The main gap is that the nested plan and merchant objects accept arbitrary properties that neither the schema nor the description explains, so an agent cannot know what to put there.

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 83%, so the baseline is 3; the description earns above that by adding the one-of rules the schema does not express — price OR amount, intro_price OR intro_percent_off (with intro_periods) — plus required terms like interval, cancel_url and merchant_name, and a runnable example. It leaves the opaque plan and merchant free-form objects unexplained.

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?

"Generates the locked, engine-verified automatic-renewal disclosure for a plan" gives a specific verb plus resource and names the concrete outputs (disclosure_text, consent_label, html), which sets it apart from a checking tool. It never explicitly contrasts itself with the sibling check_disclosure, so differentiation is implied through "engine-verified" rather than stated.

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

Usage Guidelines3/5

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

The "Terms:" sentence and worked example effectively tell the caller what input combinations are needed to get a valid result, which is real usage guidance. However, there is no explicit statement of when to use this instead of check_disclosure or get_elements_snippet, and no exclusions or prerequisites (beyond the parenthetical about a key) are given.

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.