Skip to main content
Glama

Create payment link

checkout_create_payment_link
Idempotent

After explicit user approval, use the prepared confirmation to create the hosted Stripe payment link. The confirmation is bound to the first idempotencyKey used: if creation fails, retry with the same confirmationId and exact same key; do not switch keys. Replaying after success returns the existing unpaid checkout and link through checkout idempotency without creating another Stripe session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmedYes
confirmationIdYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / idempotencyKey / maxLength
      Removed value: -128
    • removedInput schema / properties / idempotencyKey / minLength
      Removed value: -16
    • addedInput schema / properties / idempotencyKey / pattern
      Added value: +"^[A-Za-z0-9_-]{16,128}$"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description goes well beyond them: it explains key binding ('bound to the first idempotencyKey used'), the do-not-switch-keys rule, and replay semantics ('Replaying after success returns the existing unpaid checkout and link... without creating another Stripe session'). This is exactly the behavioral protocol an agent needs to avoid duplicate Stripe 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?

Three tight sentences with zero filler. The precondition is front-loaded, and the remaining content is dense idempotency guidance that directly affects correct invocation.

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?

Covers the critical workflow (approval, prepared confirmation, idempotent retry, replay behavior) and even hints at the return ('the existing unpaid checkout and link') despite no output schema. Minor gaps remain: the 'confirmed' parameter is unexplained, the prerequisite sibling is only implied, and non-idempotency error cases (e.g., invalid/expired confirmation) are not mentioned.

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 0%, so the description must compensate. It explains idempotencyKey semantics thoroughly (first-key binding, retry with same key) and touches confirmationId ('retry with the same confirmationId'), but the required 'confirmed' boolean is never addressed beyond the vague implication of 'explicit user approval'. One parameter is richly covered, one partially, one not at all.

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 and resource ('create the hosted Stripe payment link') and scopes it with the precondition 'use the prepared confirmation', which distinguishes this step from checkout_prepare_payment. An agent can tell it is the final materialization step rather than the preparation step.

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?

Clearly says when to call it ('After explicit user approval', with 'the prepared confirmation') and gives retry conditions ('retry with the same confirmationId and exact same key; do not switch keys'). It implies the prerequisite sibling but never explicitly names checkout_prepare_payment or states when not to use it.

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.

Resources