Skip to main content
Glama

buy_credits

Get a Stripe Checkout URL to load credits onto this account. Returns a payment link the HUMAN must open in a browser to pay — this tool does not itself charge anything. amount_usd must be one of the available top-up amounts (call list_topup_packs to see them). Each $2 covers one site banner-free for a month (e.g. $24 = 12 months). Pass site to remove the banner from that site automatically the moment they pay — no set_no_ads call needed. Without site, the balance updates after payment and you then call set_no_ads. Requires a key.

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

Input Schema

NameRequiredDescriptionDefault
keyYesboom_sk_ key.
siteNoOptional: a site this key owns. Its banner is removed automatically once the payment lands.
amount_usdYesCredit amount in US dollars — one of the amounts from list_topup_packs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Optional: a site this key owns. Its banner is removed automatically once the payment lands.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the returned link must be opened by a human in a browser, that no charge occurs server-side, that the balance updates only after payment, and that a key is required. It does not state link expiry or what happens if payment is abandoned, which are the remaining behavioral gaps.

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 the purpose and the human-in-the-loop caveat, then the amount constraint, then the site behavior. Dense but nearly every clause carries operational information; the trailing 'Requires a key' is the only slightly tacked-on element.

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?

No output schema and no annotations, yet the description explains the return value (a payment URL), who must act on it, the valid amount domain, and the two post-payment paths. Nothing an agent needs in order to call this 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; the description adds real meaning beyond the schema by explaining the pricing model ('each $2 covers one site banner-free for a month, e.g. $24 = 12 months') and the consequence of passing `site` versus omitting it. The `key` parameter is left to the schema, which is acceptable given full coverage.

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 ('Get a Stripe Checkout URL to load credits onto this account') and immediately clarifies what it is not ('this tool does not itself charge anything'). An agent can distinguish it from list_topup_packs and set_no_ads without opening any schema.

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 explicit routing: call list_topup_packs to discover valid amounts, pass `site` to have the banner removed automatically, and without `site` call set_no_ads after payment. Both the when and the when-not are covered, along with the follow-up step.

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