Skip to main content
Glama

Buy credits (one-time pack)

create_credit_checkout

Create a Stripe Checkout URL for a one-time credit pack ($20 → 400 credits, no subscription). Show the checkout_url to the user so they can pay in the browser. After payment, credits appear on get_credit_balance — then retry the generation. Use when get_credit_balance is too low or a tool returns [insufficient_credits] / needsUpgrade.

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_credit_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
packNoCredit pack id (default starter_20: $20 / 400 credits).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, readOnlyHint=false and destructiveHint=false, but the description adds what those annotations cannot: this hits an external payment provider, returns a URL the agent must surface to the user, payment happens out-of-band in the browser, and credits only land afterward. It does not say whether repeated calls spawn multiple sessions, so idempotency behavior (annotations mark it false) is left implicit.

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?

Four short sentences, front-loaded with the core action and price, then the required agent behavior, then the trigger conditions. No filler and no restatement of the title.

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 still names the return value (checkout_url) and the flow around it. For a one-parameter, single-pack tool, nothing an agent needs in order to call it correctly is missing.

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 single 'pack' parameter already carries its own description with the default and enum value. The description's price-to-credits mapping duplicates that schema text rather than adding new meaning, so this sits at the baseline.

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?

The description states a specific verb and resource ('Create a Stripe Checkout URL') plus the exact product ('one-time credit pack ($20 → 400 credits, no subscription)'). An agent can immediately distinguish this from the sibling get_credit_balance, which only reads balance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit triggers ('when get_credit_balance is too low or a tool returns [insufficient_credits] / needsUpgrade') and names the alternative to check first. It also spells out the correct post-purchase sequence: show the URL, then retry the generation after credits appear.

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