Skip to main content
Glama

Buy a credit pack (returns a checkout link)

buy_credits

Get a Stripe checkout link for a one-time credit pack, to hand to the user. Packs: starter $9 for 500 credits, growth $29 for 2,000 credits, scale $99 for 10,000 credits. Credits never expire; 1 credit per document. If this server has an API key set, the credits land on that key's account. Without a key, pass the user's email (ask them; do not invent one) — the page after payment shows their new API key. Creating the link charges nothing; the user pays on Stripe's page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packNoWhich pack. Defaults to starter.
emailNoThe user's email. Required only when no API key is set on this server; ignored when one is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say non-readonly, open-world, non-idempotent, non-destructive) by disclosing that link creation charges nothing, payment happens on Stripe's page, credits never expire, and the post-payment page reveals the new API key. That is exactly the behavioral context an agent needs.

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?

Front-loads the purpose, then packs pricing, credit semantics, and the key/email branching into compact sentences with no filler. Every sentence carries information.

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?

Although there is no output schema, the description explains what is returned (a checkout link to hand to the user) and what the user sees after payment. Combined with the conditional email/API-key logic, nothing needed 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3, but the description adds real meaning: each enum value's price and credit amount, and the precise conditional role of `email` in relation to server API key state.

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 artifact ('Get a Stripe checkout link for a one-time credit pack') with the intended handling ('to hand to the user'). It is clearly distinguishable from siblings like check_credits and create_api_key.

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?

Explicitly covers the two usage branches: with an API key set the credits land on that account, without one pass the user's email. It also tells the agent to ask for the email rather than invent one, which is actionable routing guidance.

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.