Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Check a subscription lifecycle email

check_email
Read-onlyIdempotent

Checks an acknowledgment, trial reminder, renewal reminder, price-change, annual-terms or cancellation-confirmation email against the laws that require it, and returns a verified template that passes (subject, text, html with merge tags) plus required_by (the laws that make it 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

NameRequiredDescriptionDefault
htmlNoHTML body.
kindYesWhich email (trial_reminder = trial_ending).
planNoPlan name or price_… (default: the one named)
siteNosite_… whose Stripe prices judge it (default: your Stripe site).
textNoPlain-text body (give text, html or both).
as_ofNoEvaluate the law as of this date, YYYY-MM-DD (default today).
termsNoprice, interval, cancel_url (optional with site); price_change: NEW price
subjectYesSubject line.
verboseNo
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
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
  3. Changed6 schema fields changed
    • changedInput schema / properties / terms / 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 / terms / properties / brand_name
      Added value: +{
      +  "description": "Alias of merchant_name.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / properties / terms / 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 / terms / properties / interval / description
      Previous value: -"Billing interval: \"day\", \"week\", \"month\" or \"year\"."New value: +"Billing interval: day, week, month or year."
    • changedInput schema / properties / terms / properties / interval_count / description
      Previous value: -"Intervals between charges (default 1; 3 + month = quarterly)."New value: +"Default 1; 3 + month = quarterly."
    • changedInput schema / properties / terms / 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. Changed4 schema fields changed
    • addedInput schema / properties / plan
      Added value: +{
      +  "description": "Plan name or price_… (default: the one named)",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "site_… whose Stripe prices judge it (default: your Stripe site).",
      +  "maxLength": 100,
      +  "type": "string"
      +}
    • changedInput schema / properties / terms / description
      Previous value: -"The plan the email is about: price (or amount), interval and cancel_url at least."New value: +"price, interval, cancel_url (optional with site); price_change: NEW price"
    • changedInput schema / required
      Previous value: -[
      -  "kind",
      -  "subject",
      -  "terms"
      -]New value: +[
      +  "kind",
      +  "subject"
      +]
  5. Changed3 schema fields changed
    • addedInput schema / properties / terms / properties / intro_percent_off
      Added value: +{
      +  "description": "Or the promo as % off (coupon percent_off).",
      +  "exclusiveMaximum": 100,
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / terms / properties / intro_periods
      Added value: +{
      +  "description": "Billing periods the promo lasts (default 1).",
      +  "maximum": 36,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / terms / properties / intro_price
      Added value: +{
      +  "description": "Promo first-period price, major units ($8 → 8).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  6. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine value by disclosing the return shape (verified template with merge tags plus required_by) and that output is law-dependent and date-sensitive, but says nothing about failure behavior — what happens when the email fails a check — which is the outcome an agent most needs to anticipate.

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-loads the purpose and outcome in one sentence, then a compact example, then the explicit routing line to get_notice_schedule. The example is long but earns its place by illustrating the nested terms shape; there is no filler prose.

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 10-parameter tool with a nested object and no output schema, the description adequately covers purpose, output contents, an example call and the sibling boundary. The main remaining gap is failure/negative-path behavior and how large a returned template 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?

Schema coverage is 90%, so the baseline is 3, and the worked example adds meaning beyond the schema by showing how kind, subject, text and the nested terms object (price, interval, trial_days, cancel_url, merchant_name) are actually populated for a trial_reminder. It does not explain plan/site/jurisdictions defaults beyond what the schema already states.

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 specific verb (checks) and a well-enumerated resource (six named email kinds) plus the outcome (returns a verified template that passes, with subject/text/html and required_by), and explicitly separates itself from get_notice_schedule for timing. An agent can tell exactly what this tool does and what it produces.

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?

Gives a clear usage context (validate a drafted lifecycle email against the laws that mandate it) and routes timing questions to get_notice_schedule, and the embedded example demonstrates a realistic call. It stops short of stating when not to use it relative to other check_* siblings (e.g., check_disclosure) and of naming prerequisites like having a site/plan.

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.