Skip to main content
Glama

PreviewFix

Create a human-paid checkout link

get_checkout_link

Create an order and return a hosted Stripe checkout URL (or PayPal when enabled) for a preview token. Never charges automatically — hand the returned checkoutUrl to the human buyer so they can review and pay in a browser.

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": {
      "token": "<token>",
      "email": "<email>"
    },
    "name": "get_checkout_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional buyer name.
emailYesBuyer's email address for delivery and receipt.
tokenYesThe preview token from run_preview.
variantNoOptional variant key from list_services (defaults to the service's primary variant).
providerNoHosted payment provider (default: stripe; paypal only when enabled).stripe

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false; the description adds the important facts that an order is actually created and that nothing is charged automatically, plus what the caller does with the return value. It does not address the non-idempotent flag, i.e. that repeated calls likely mint duplicate orders.

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 tight sentences: the action and returned artifact come first, then the crucial 'never charges automatically' caveat and the hand-off instruction. Nothing is padding.

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 no output schema, the description usefully names the returned checkoutUrl and its intended consumer, which is what an agent most needs for a mutation tool. It is nearly complete, but leaves open order lifetime, duplicate-order behavior, and whether PayPal links differ.

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%, so token, email, name, variant, and provider are already documented with formats and defaults. The description adds no new parameter meaning (e.g. how variant selection interacts with provider), 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?

States a concrete verb+resource pair — create an order and return a hosted checkout URL — plus the accepted input (a preview token) and the provider options. It implicitly separates itself from the read-only siblings (get_preview, check_order_status) by making clear this is the paying step, though it never names an alternative explicitly.

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 only implied through workflow references: the token comes from run_preview and the resulting URL is handed to a human buyer, which suggests check_order_status is the follow-up. There is no explicit when-to-use/when-not-to-use statement or named alternative.

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