Skip to main content
Glama

Create a link to pay a failed plan renewal

create_subscription_payment_link

Create a Stripe Checkout link to pay a monthly plan renewal by hand after the automatic charge failed (status past_due). The checkout also saves the new card, and the new paid period starts from the payment. This only returns a URL - nothing is charged from here: the customer opens it and pays themselves. The card is charged the tier price plus 21% Czech VAT, unless the account is on EU reverse charge, where the two are equal. Works only while the plan is past_due (invalid_state otherwise; subscription_missing or subscription_canceled when no plan is running). Same data as POST /v1/subscription/pay (response schema in /openapi.json).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_subscription_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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, destructiveHint=false, so the bar is lower, yet the description adds real substance: nothing is charged server-side, the customer pays via the URL, the checkout saves the new card, and the paid period starts from the payment. It also discloses pricing composition (tier price plus 21% Czech VAT, or equal amounts under EU reverse charge) and the error taxonomy. It does not mention auth requirements, expiry, or whether the URL is single-use, which keeps it out of the top band.

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-loaded with the action and the precondition, then layered with behavioral, pricing, and error details; every sentence carries information. It is dense and slightly long, but no sentence is filler.

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?

For a zero-parameter mutation-style tool with no output schema, the description covers what is returned (a URL only), what side effects do and do not occur, the pricing model, the equivalent REST endpoint, and the failure modes. An agent has everything needed to call it correctly and set expectations for the user.

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

Parameters5/5

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

The tool takes zero parameters, which is the baseline-4 case, and the description goes further by explaining the pricing context the implicit payload will carry (tier price plus VAT, reverse-charge variation). There is no parameter ambiguity left for an agent to resolve.

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 concrete verb and resource ("Create a Stripe Checkout link") plus the exact triggering condition ("monthly plan renewal by hand after the automatic charge failed (status past_due)"). An agent can distinguish this from create_subscription_link and create_topup_link without opening either schema, because the failure-state condition is spelled out.

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 when-to-use condition (plan is past_due after a failed automatic charge) and enumerates when-not conditions via error codes (invalid_state, subscription_missing, subscription_canceled). It stops short of naming a sibling tool for the non-failed case, so routing to alternatives is left to inference.

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.