Skip to main content
Glama

Create a monthly plan checkout link

create_subscription_link

Create a Stripe Checkout link that starts a monthly plan. Tiers: 490 (490 CZK per month for 600 CZK of monthly credit), 990 (990 CZK per month for 1,300 CZK of monthly credit), 1990 (1,990 CZK per month for 2,800 CZK of monthly credit), all excluding VAT. Each paid month grants the tier's monthly credit; unused monthly credit expires at the end of the period and is non-refundable (a consumer who withdraws within 14 days pays only a proportional part, see the terms, Section 11), while topped-up credit is separate and never expires. exhaustionMode decides what happens once the monthly credit is used up: topup buys 200 CZK of credit (excluding VAT) from the saved card whenever the balance falls under 100 CZK, cap buys nothing and rejects outgoing actions with subscription_cap_reached. There is no default - ask the customer. This only returns a URL - nothing is charged from here: the customer opens it, pays the first month in Checkout, and the card is saved for the following months. The card is charged the tier price plus 21% Czech VAT, unless the account is on EU reverse charge, where the two are equal. Requires a complete billing address on the account (billing_address_required otherwise) and a plan that is offered to the account (pausal_unavailable otherwise). For a consumer account (no company ID, VAT ID or company name) no Checkout link is created: the call returns a confirmUrl to the plan form in the portal, where the person expressly asks to start the service before the 14-day withdrawal period ends, chooses exhaustionMode and pays; give that link to the customer. The Checkout page shows the plan terms (the recurring charge at the price list valid on the day of the charge, the expiry of the monthly credit and the chosen behaviour after exhaustion), so the customer confirms them by paying. Fails with subscription_exists when a plan is already running. Same data as POST /v1/subscription/checkout (response schema in /openapi.json).

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": {
      "tier": "<tier>",
      "exhaustionMode": "<exhaustionMode>"
    },
    "name": "create_subscription_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierYesPlan tier: 490, 990 or 1990, which is the monthly price in CZK excluding VAT. get_subscription lists the monthly credit each tier grants.
exhaustionModeYesWhat happens once the monthly credit is used up: topup buys credit from the saved card, cap buys nothing and rejects outgoing actions. There is no default, ask the customer.
consumerConsentNoKept for compatibility, no longer needed: a consumer account (no company ID, VAT ID or company name) gets a confirmUrl to the portal form instead of a Checkout link and makes the request to start the service there in person. Business accounts omit it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare mutation/open-world/non-idempotent; the description adds far more: nothing is charged from this call, the card is saved for later months, VAT and reverse-charge treatment, credit expiry and 14-day withdrawal rules, the two exhaustionMode behaviors including the subscription_cap_reached rejection, and the specific error codes (billing_address_required, pausal_unavailable, subscription_exists).

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

Conciseness3/5

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

Purpose is front-loaded in the first sentence, but the remainder is one dense paragraph of nested parentheticals covering pricing, credit expiry, VAT, error codes, and consumer flow. Nearly every clause carries information, yet the lack of structure (no line breaks or bullets) makes it harder to scan than its content warrants.

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 no output schema, the description fills the gap by explaining exactly what is returned (a Checkout URL, or a confirmUrl for consumer accounts) and that nothing is charged server-side. For a three-parameter mutation with open-world behavior, the preconditions, failure modes, and customer-facing flow are all covered.

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 100%, so baseline is 3, but the description goes beyond it by spelling out what each tier's monthly price buys in monthly credit (490/600, 990/1300, 1990/2800 CZK) and by reinforcing that exhaustionMode has no default and must be asked of the customer. It repeats some schema text (exhaustionMode definitions) rather than adding new syntax or constraints.

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 first sentence gives a specific verb and resource: 'Create a Stripe Checkout link that starts a monthly plan,' and the plan/tier pricing detail makes the monthly-subscription nature unmistakable against top-up style siblings. It stops short of naming an adjacent alternative (e.g. the top-up or payment-link tools) so the agent must infer the boundary from the monthly-vs-topup framing.

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?

It gives clear situational routing: consumer accounts return a confirmUrl to the portal instead of a Checkout link, and the call fails when a plan is already running or the billing address is incomplete. The explicit 'There is no default - ask the customer' is good operational guidance, but there is no statement of when to prefer this over the sibling payment-link/top-up tools.

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.