Skip to main content
Glama

create_checkout_link

Idempotent

Card checkout for a human (coming soon): returns a Stripe-hosted checkout_url for a credit pack (pack_5 $5, pack_20 $20, pack_100 $100; each pack buys exactly its price in credit). Give the link to the person paying; credits arrive only after Stripe confirms. Verified owners, admin key. 503 checkout_not_enabled until switched on.

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

Input Schema

NameRequiredDescriptionDefault
packYesCredit pack: pack_5 ($5), pack_20 ($20) or pack_100 ($100), e.g. "pack_20".
idempotency_keyNoOptional. Reuse on retries so the action happens once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / pack / description
      Added value: +"Credit pack: pack_5 ($5), pack_20 ($20) or pack_100 ($100), e.g. \"pack_20\"."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (non-destructive, idempotent, closed-world), and the description adds genuinely new behavior: asynchronous credit fulfillment gated on Stripe confirmation, an auth requirement (verified owner, admin key), and a hard 503 checkout_not_enabled gate. It does not cover link expiry or failure modes beyond the 503, which keeps it short of a 5.

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?

A single dense sentence that front-loads the tool's function, the return value, and the payer flow. The parenthetical price list duplicates the enum and could be trimmed, but otherwise nothing is wasted.

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?

For a two-parameter mutation with no output schema, it names the returned field (checkout_url), the fulfillment timing, the auth requirement, and the unavailability state. Only link lifetime and retry/error behavior beyond the 503 are left unspecified.

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 coverage is 100% and the enum already lists each pack with its price, so the description's pack/price list is largely redundant. The one real addition is that each pack buys exactly its price in credit, which gives the parameter meaning the schema lacks. Baseline 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?

The description names a concrete verb and result: it creates a Stripe-hosted checkout_url for a credit pack, and it scopes it to 'a human' payer. That distinguishes it from an agent-driven top-up flow, but it never names the sibling tool (e.g. get_topup_link) it replaces or complements, so the agent must infer the split.

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 context: hand the link to the person paying, credits land only after Stripe confirms, and the caller must be a verified owner with the admin key. It also flags the 503 checkout_not_enabled state as a precondition. What's missing is an explicit 'use X instead when...' against any sibling 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