Skip to main content
Glama

Get a key or add credit

buy_credit

Starts a purchase of prepaid credit and returns checkout_url, where a person pays, and claim_url, which returns the key once paid. With a key, the credit is added to that key. Nothing is charged by this call.

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": {
      "amount_usd": "<amount_usd>"
    },
    "name": "buy_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
amount_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, openWorldHint=true. The description adds genuine value on top: the human-in-the-loop payment step, the two returned URLs and what each is for, and the reassurance that no charge occurs at call time (important because the write hint could otherwise imply billing). It still doesn't say whether the session expires or how long credit lasts.

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?

Three short sentences, front-loaded with the action before the outputs and the no-charge caveat. Each sentence carries information, though 'the credit is added to that key' is slightly circular and the missing key parameter in the schema makes that sentence read more ambiguously than intended.

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?

With no output schema, the description correctly takes on the burden of explaining return values, which it does. The notable gap is the statement that 'with a key, the credit is added to that key' — no key parameter exists in the schema, so the mechanism (ambient API key vs. omitted parameter) is left unexplained, and the amount parameter is untouched.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

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

Schema description coverage is 0% and the single parameter amount_usd is never mentioned in the description. The allowed enum values (10/25/50/100/250) are visible in the schema but the description does not reinforce that amount is required, that only presets are valid, or what currency/unit semantics apply. With one undocumented required parameter, the description should have compensated and did not.

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?

Names a specific action ('Starts a purchase of prepaid credit') and the resource, then names both returned artifacts (checkout_url, claim_url). An agent knows exactly what this does and roughly what comes back without opening any schema; the sibling tools are unrelated API surfaces, so no sibling collision needs resolving.

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?

The description makes the two-step flow explicit: call this to get a checkout_url, a human pays there, then claim_url yields the key. It also clarifies the timing ('nothing is charged by this call'), which tells the agent this is a setup step rather than a completed purchase. It stops short of stating preconditions or when-not-to-use (e.g. whether a key from an earlier purchase should be reused).

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