Skip to main content
Glama

buy_credits

Pay once, then call without per-request settlement — Buy a prepaid balance in a single x402 settlement and get a secret credit token. Send it as the x-credit-token header on any paid service and each call debits its price from your balance — no per-call signature, no settlement latency. Built for agents that fire many checks a minute. Tiers: $0.25 (starter), $1, $5 (+10%), $20 (+20%). The token is shown once; balance lasts 180 days. Priced $5.00 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls, or get 1 free call/day per tool. No wallet or API key required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tierNoPack: 0.25, 1, 5 or 20 (USD)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoThe result payload. Shape is service-specific; every field is documented in the tool description.
serviceNoThe service id that answered.
checkedAtNoISO-8601 timestamp of when the underlying reads were taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / data / description
      Previous value: -"The result payload. Shape is service-specific; every field is documented in the service description above."New value: +"The result payload. Shape is service-specific; every field is documented in the tool description."
  2. Changed1 schema field changed
    • removedOutput schema / required
      Removed value: -[
      -  "data"
      -]
  3. Added

TDQS

B3.3/5.0
Behavior2/5

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

The description discloses important traits: token is shown once, balance lasts 180 days, no wallet/API key needed. Annotations do not cover these details. However, the text contains an internal contradiction: 'each call debits its price from your balance' vs 'send a prepaid x-credit-token header for unlimited calls'. This makes actual metering behavior unclear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is over-length and repetitive about x402 pricing, and the final sentence jumbles several ideas: per-call pricing, credit-token usage, and free daily calls. A cleaner front-loaded statement of 'buy prepaid credits → get token → attach header' would be more effective. Some details, like tier bonuses and 180-day expiry, are earned, but the contradictory 'unlimited calls' phrase costs clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value details are not needed. The description covers token generation, expiry, tiers, and the no-wallet requirement. It is incomplete regarding edge cases such as insufficient balance or omitted tier, and the contradictory unlimited-calls wording undermines confidence. For a payment-related tool, this is adequate but not fully dependable.

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% with a simple string tier field. The description enriches this by giving exact accepted values and bonus percentages: $0.25 starter, $1, $5 (+10%), $20 (+20%). It does not explain what happens if tier is omitted (it is not required), but overall it adds useful meaning beyond the schema.

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 tool buys a prepaid balance and returns a secret credit token, which is distinct from the many data/analysis siblings. The main purpose is understandable. However, the later pricing sentence ('Priced $5.00 per call over x402 on Base') muddies whether this tool is for purchasing credits or paying per call.

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?

It gives a concrete use case: 'Built for agents that fire many checks a minute', and frames prepaid credits against per-request x402 settlement by saying 'no per-call signature, no settlement latency'. It also mentions a free alternative ('1 free call/day per tool'). It does not name specific sibling tools, but the context is clear enough for an agent to select it when buying prepaid balance.

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