Skip to main content
Glama

buy_credits

Buy more credits for your API key. Returns a Stripe Checkout link for 1 to 10 credit packs, already tied to this key's account, so no sign-in is needed. Calling this charges nothing: open the link in a browser if you can, or give it to the user, and the user completes the payment there with a card or Link. The credits are added to this key within seconds of payment; call check_credits to confirm. The result gives the purchase's credits and price. Costs no credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packsNoHow many credit packs to buy, 1 to 10. Defaults to 1.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
packsYesCredit packs in this purchase.
creditsYesCredits added to the API key once paid.
priceUSDYesTotal price in US dollars.
expiresAtYesWhen the checkout link stops working (RFC 3339).
checkoutURLYesStripe Checkout link that completes the purchase.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=false, openWorldHint=true, non-idempotent, non-destructive), and the description adds substantial context beyond them: invoking it charges nothing, the link is pre-tied to the key's account so no sign-in is needed, payment completes in the browser, and credits land within seconds. This is exactly the extra context annotations cannot convey.

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?

Front-loaded with purpose and the key reassurance ('Calling this charges nothing') before the operational steps. Slightly redundant at the tail, where 'Costs no credits' repeats the earlier 'charges nothing' statement.

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?

An output schema exists, so return details needn't be explained, yet the description still notes the result carries credits and price. For a one-parameter, non-destructive action tool, nothing an agent needs to invoke 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 'packs' parameter is fully documented in the schema, including the 1–10 range and default. The description restates the 1-to-10 packs constraint without adding format or behavioral detail, so baseline 3 applies.

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 ('Buy more credits for your API key') and immediately clarifies the artifact produced (a Stripe Checkout link). It is readily distinguishable from the sibling check_credits, which only inspects balance.

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?

Gives clear context: call this when more credits are needed, then 'call check_credits to confirm' after payment. It lacks explicit when-not-to-use guidance or a direct alternative, but the post-purchase confirmation step is spelled out.

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