Skip to main content
Glama

Create checkout link

create_checkout_link

Prepare a Stripe-hosted subscription Checkout URL. It never charges a card. Draft plans, missing owner approval, unavailable covered agents, or missing recurring Price IDs fail closed without creating a session.

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": {
      "plan_id": "<plan_id>",
      "account_ref": "<account_ref>"
    },
    "name": "create_checkout_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYesPlan id, for example starter-seat; see list_plans.
account_refYesYour reference for the account, for example an email address.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changed
    • addedInput schema / properties / account_ref / description
      Added value: +"Your reference for the account, for example an email address."
    • addedInput schema / properties / plan_id / description
      Added value: +"Plan id, for example starter-seat; see list_plans."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, but the description adds real value on top: "never charges a card" clarifies that creating a session is not a charge, and the enumerated fail-closed causes (draft plan, missing owner approval, unavailable covered agents, missing recurring Price IDs) tell the agent which preconditions cause the call to abort without a session. The one gap is that idempotentHint=false is not echoed – nothing warns that retrying produces additional sessions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler. The core action is front-loaded, and the precondition list is compressed into one clause without losing any of the four failure causes.

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?

With full schema coverage, an output schema, and annotations present, the description covers what an agent needs to call it correctly and to anticipate rejection. Minor omissions remain: no mention of URL expiry or the non-idempotent retry behavior, which matter for a hosted-link generator.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both plan_id ("for example starter-seat; see list_plans") and account_ref documented in the schema itself. The description adds no further parameter meaning, so the baseline of 3 applies.

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?

"Prepare a Stripe-hosted subscription Checkout URL" gives a specific verb and a precisely scoped resource, and the word "subscription" plus "Stripe-hosted" distinguishes it from the sibling customer_portal_link. It stops short of explicitly naming that sibling, so the differentiation is inferred 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?

Usage is implied: an agent can tell this is the step that produces a hosted checkout URL for a plan, and the fail-closed conditions tell it when the call will be rejected. There is no explicit when-to-use vs when-to-use-another guidance, no mention of when to prefer customer_portal_link, and no stated prerequisites such as owner approval being required beforehand.

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.