Skip to main content
Glama

buy_credits

Start a purchase of website credits for this API key. Packs: 1 (1 for 29.00 USD), 5 (5 for 135.00 USD), 10 (10 for 250.00 USD), 25 (25 for 575.00 USD). Returns a Stripe Checkout URL. Payment must be completed at that URL (by a person, or by an agent able to pay by card); credits are added automatically as soon as Stripe confirms payment. Poll get_credit_balance to see them arrive.

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

Input Schema

NameRequiredDescriptionDefault
packYesThe pack id, which is its number of credits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 behavioral burden and does so well: it discloses the two-step flow, that a human or card-capable agent must finish payment, that credits are granted only after Stripe confirmation, and that arrival is asynchronous and observed via polling. Remaining gaps are session lifetime and idempotency on repeated invocation, which an agent may need before calling.

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?

Four short sentences, front-loaded with the action and outcome, followed by pricing, then the completion and polling requirements. The pack list is compactly formatted and no sentence is filler.

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?

For a single-required-parameter tool with no output schema, the definition covers everything an agent needs: what is bought, the options and prices, what is returned, who must complete payment, and how to verify the credits landed.

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 enum and its 'number of credits' meaning are already documented. The description nonetheless adds value the schema lacks: an explicit price for each pack id (29.00, 135.00, 250.00, 575.00 USD), letting an agent reason about cost before choosing a pack.

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?

The description opens with a specific verb and resource: 'Start a purchase of website credits for this API key.' It scopes the action to the calling key and immediately clarifies the artifact produced (a Stripe Checkout URL), which cleanly separates it from the read-only sibling get_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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is clear: call this to buy a pack, then complete payment at the returned URL and poll get_credit_balance. It names the correct follow-up sibling and its role. It stops short of stating exclusions, such as what to do if a checkout session is already open or whether repeated calls create duplicate sessions.

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.