Check a subscription lifecycle email
check_emailChecks an acknowledgment, trial reminder, renewal reminder, price-change, annual-terms or cancellation-confirmation email against the laws that require it, and returns a template that passes the checks (subject, text, html with merge tags), verified by the rules engine, plus required_by (which laws make this email mandatory for this plan). Example: {"kind":"trial_reminder","subject":"Your trial ends soon","text":"…","terms":{"price":19.99,"interval":"month","trial_days":14,"cancel_url":"https://acme.example/account/cancel","merchant_name":"Acme"}}. For WHEN each email must be sent, use get_notice_schedule.
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": {
"kind": "<kind>",
"subject": "<subject>"
},
"name": "check_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | HTML body. | |
| kind | Yes | Which email (trial_reminder = trial_ending). | |
| plan | No | Plan name or price_… (default: the one named) | |
| site | No | site_… whose Stripe prices judge it (default: your Stripe site). | |
| text | No | Plain-text body (give text, html or both). | |
| as_of | No | Evaluate the law as of this date, YYYY-MM-DD (default today). | |
| terms | No | price, interval, cancel_url (optional with site); price_change: NEW price | |
| subject | Yes | Subject line. | |
| jurisdictions | No | Where the business sells: "all" (default) or state codes like ["US-CA","US-NY"] ("CA" works too). Federal law is always included. |