Skip to main content
Glama

create_api_credit_checkout

Create a Stripe Checkout URL to add prepaid model API credits (min $20). Use it only when the user asks to add API credits. A human must open the URL and pay; nothing is charged without that payment in the browser. Then poll get_api_credit_balance. Return URLs are fixed on platform.ismscopilot.com/credits. Rate-limited (5 per hour per user). Requires api_credits:checkout.

Input Schema

NameRequiredDescriptionDefault
amountYesUSD amount to add (integer or decimal, min 20, max 10000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false) by disclosing the human-in-the-loop payment requirement, that nothing is charged without browser payment, the fixed return URL host, a 5-per-hour-per-user rate limit, and the required api_credits:checkout scope. These are exactly the operational facts an agent cannot derive from structured fields.

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?

Five short sentences, each carrying a distinct fact: what it creates, when to use it, that payment is human-gated, the follow-up poll, and the constraints (redirect host, rate limit, scope). The critical action and constraint lead.

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?

Despite having no output schema, the description tells the agent what the return value is (a checkout URL), what happens after (human pays, then poll get_api_credit_balance), and the full constraint envelope. An agent has everything needed to call this correctly and safely in a single pass.

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% and the single 'amount' parameter is already documented with type, min 20, and max 10000. The description's '(min $20)' merely restates the schema rather than adding new meaning such as currency assumptions or rounding behavior.

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 a Stripe Checkout URL' for 'prepaid model API credits' — with the amount constraint ($20 min) right in the first sentence. This is clearly distinguishable from siblings like create_api_key or get_api_credit_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?

Gives an explicit gating condition ('only when the user asks to add API credits') and an explicit follow-up action ('Then poll get_api_credit_balance'), effectively naming the alternative tool for the balance-reading case. Nothing about when to invoke this 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.