Skip to main content
Glama

Buy a prepaid API key ($2.00)

buy_api_key

$2.00 USDC once. Use when your client cannot sign an x402 payment on every call, or to pay many calls (rug checks, launch polls, wallet and creator cards) from one purchase; not needed if your client already pays x402. Each new payment here buys a new $2.00 key. One x402 payment of $2.00 (USDC on Solana or Base; by header, or in a browser with a wallet) returns a key lt_... holding $2.00 of credit. Send it as the X-API-Key header on any paid HTTP route and that route's price is deducted; no x402 client is needed after the purchase (the same header on POST /mcp pays the MCP tools). Free balance: GET /v1/keys/balance with the header. Credit does not expire; the key is a bearer secret. The key activates when the same request settles; the same signed payment retried returns the same key. No arguments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations carry only generic hints (not read-only, open-world, not idempotent, not destructive), so the description bears the full burden and succeeds richly. It discloses the payment mechanics, that credit does not expire, that the key is a bearer secret, activation timing ('activates when the same request settles'), and the per-payment idempotency nuance. The retry behavior ('same signed payment retried returns the same key') is consistent with idempotentHint=false since a new call involves a new payment and creates a new key.

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?

The description is long (~120 words) but front-loaded with the most critical fact ('$2.00 USDC once') before expanding into usage conditions and mechanics. Every sentence carries non-redundant operational content — payment method, post-purchase usage, balance check, expiry, security, activation, retry behavior — so it earns its length even though it is not terse.

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?

With no output schema, the description must explain return values, and it does: 'returns a key lt_... holding $2.00 of credit.' It also covers the payment currency and networks (USDC on Solana or Base), how to spend the credit (X-API-Key header on paid routes), how to check the balance, expiry, and security posture. For a payment tool with a surprisingly complex flow, nothing an agent needs 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?

The tool has zero parameters and 100% schema coverage, so the schema is trivially complete. The description explicitly states 'No arguments,' confirming an agent should not look for parameters. Baseline for a 0-param tool is 4, and the description adds the explicit confirmation rather than staying silent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: a $2.00 payment returns a prepaid key (lt_...) holding $2.00 of credit. The verb (buy) and resource (API key with specific credit amount) are specific. It implicitly differentiates from siblings like buy_trial_key and buy_dataset by describing the full paid key, though it never names those siblings explicitly.

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?

The description gives explicit when-to-use conditions: 'Use when your client cannot sign an x402 payment on every call, or to pay many calls... from one purchase' and an explicit when-not-needed exclusion: 'not needed if your client already pays x402.' This leaves no ambiguity about the decision boundary.

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