Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Get the Checkbox Elements snippet for a site

get_elements_snippet
Idempotent

Paste-ready Checkbox Elements markup for a site: the pinned tag (SRI) for , the element for directly above the pay button, the publishable key and a React example. The element renders the locked renewal line (no checkbox by default) and records each consent (cons_…). Terms come from the site's billing connection unless you pass them. Creates a disclosure record (safe to repeat). Consents are recorded by the browser, never by agents.

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": {
      "site": "<site>"
    },
    "name": "get_elements_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoBilling price / plan id (price_…) when the site has several.
siteYesSite id (site_…); list_sites shows them.
priceNoRecurring price, major units (19.99).
amountNoOr minor units (1999 = $19.99).
verboseNo
currencyNoISO currency, default "usd".
intervalNoBilling interval.
cancel_urlNohttps URL where subscribers cancel online (used in generated text).
trial_daysNoFree-trial days (0 or absent = no trial).
cancel_timingNoWhen a cancellation takes effect (default period_end).
merchant_nameNoBrand shown to subscribers, e.g. "Acme".
interval_countNoDefault 1; 3 + month = quarterly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed4 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)."
    • 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)."
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, and the description reinforces this with 'Creates a disclosure record (safe to repeat)'. It adds genuinely new behavior the annotations cannot express: the element renders a locked renewal line with no checkbox by default, and consents are recorded by the browser, never by agents — a critical disclosure for a tool that looks like a write. No auth or rate-limit context is provided.

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?

Three sentences, front-loaded with what the caller receives, then behavior, then a safety clarification. Dense and largely waste-free, though phrases like 'cons_…' and the SRI/element jargon assume domain familiarity that could cost a step for a naive agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 12 parameters but 92% schema coverage and no output schema, the description's job is mainly to explain the return payload — which it does in detail, including inline placement and the publishable key. Combined with the disclosure-record side effect and consent-routing note, an agent has enough to call this correctly.

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 92%, so the baseline is 3, but the sentence 'Terms come from the site's billing connection unless you pass them' explains the optional-override relationship among plan/price/amount/currency/interval that the schema documents individually but never as a group. That is real added meaning beyond the field-level descriptions.

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?

The description names the exact deliverable — a pinned <script> tag with SRI, the <checkbox-disclosure> element, the publishable key and a React example — which is far more specific than a generic 'get snippet'. It does not explicitly contrast itself with nearby tools such as setup_checkbox or check_disclosure, so the agent must infer that distinction.

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?

Placement guidance is given ('for <head>', 'directly above the pay button'), which implies when the output is needed, and it notes terms default to the site's billing connection unless passed. However, there is no explicit when-to-use/when-not statement and no named alternative tool for adjacent tasks, leaving usage largely implied.

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.