Generate a disclosure that passes the checks for given terms
get_compliant_disclosureGenerates the locked, engine-verified automatic-renewal disclosure for a plan: disclosure_text, consent_label (for an unchecked, required checkbox), button_text and drop-in html. The same wording Checkbox Elements and Fixes use. Give the terms: price (major units) or amount (minor), 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/account/cancel"}. With site (and a key allowed to create disclosures), it also returns the Checkbox Elements snippet (script tag + element + React usage) that records each consent as evidence.
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": {
"interval": "<interval>"
},
"name": "get_compliant_disclosure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site id (site_…) to also get the Elements snippet for. | |
| price | No | Recurring price, major units (19.99). | |
| amount | No | Or minor units (1999 = $19.99). | |
| currency | No | ISO currency, default "usd". | |
| interval | Yes | Billing interval. | |
| brand_name | No | Alias of merchant_name. | |
| cancel_url | No | https URL where subscribers cancel online (used in generated text). | |
| trial_days | No | Free-trial days (0 or absent = no trial). | |
| intro_price | No | Promo first-period price, major units ($8 → 8). | |
| cancel_timing | No | When a cancellation takes effect (default period_end). | |
| intro_periods | No | Billing periods the promo lasts (default 1). | |
| jurisdictions | No | Where the business sells: "all" (default) or state codes like ["US-CA","US-NY"] ("CA" works too). Federal law is always included. | |
| merchant_name | No | Brand shown to subscribers, e.g. "Acme". | |
| interval_count | No | Default 1; 3 + month = quarterly. | |
| intro_percent_off | No | Or the promo as % off (coupon percent_off). |