Skip to main content
Glama

Top up credit for paid calls

top_up
Read-onlyIdempotent

How prepaid credit for paid calls is bought: POST /api/paid/find-tools with your key then takes $0.01 a call from it, with no rate limit, and answers at once. The top-up is paid over HTTP 402, as with pay_order: a POST to the url with body {"amount_usd": 5 | 20 | 50} and no credential answers 402 with the challenges (MPP: a card through a Stripe Shared Payment Token, or USDC on Tempo or Base; x402: USDC on Base), and the same request with the credential pays. The idempotency_key from this answer, as the Idempotency-Key header on both requests, makes a retry never pay twice. With your API key the credit goes onto your account; without one the top-up makes an agent account and returns its key, which holds the credit. A balance holds at most $100 and lasts 12 months from the last top-up. It pays for calls only, not a report or a drive. The price includes any VAT, and every top-up has a receipt. With a key this also gives your balance now, and needed: false while it is above 50 calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amount_usdNoThe top-up in US dollars: 5, 20, 50. 5 buys 500 calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior1/5

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

The annotations declare readOnlyHint=true, yet the description describes a payment that debits a key, creates an agent account with a returned key, and stores credit – unmistakably state-changing behavior. The description is otherwise rich (HTTP 402 challenge flow, idempotency_key semantics, $100 cap, 12-month expiry, VAT/receipt), but this direct contradiction with the read-only annotation is disqualifying.

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

Conciseness3/5

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

It is front-loaded with the core action, but the single dense paragraph packs in payment rails, idempotency, balance limits, receipts, and VAT without structural breaks, making it hard to scan. Most sentences carry information, but the wall-of-text form hurts retrieval.

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?

For a complex, no-output-schema payment tool it covers a lot: the 402 challenge flow, the credential/idempotency mechanics, what a keyed vs unkeyed call returns, and the balance ceiling. It is nearly complete, though the account-creation outcome could be stated more explicitly as a return value.

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

Parameters3/5

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

There is a single parameter with full schema description coverage and an enum, and the schema already documents that 5 buys 500 calls. The description restates the 5|20|50 values but adds no syntax or meaning beyond the schema, so the baseline of 3 applies.

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 states a specific action and resource: buying prepaid credit for paid calls, and it explicitly frames it as a distinct operation from pay_order ("as with pay_order") and from balance ("this also gives your balance now"). It also scopes the credit to "calls only, not a report or a drive," so an agent can separate it from sibling payment tools without reading schemas.

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: it is the path for funding call credit, and the note that it "pays for calls only, not a report or a drive" implicitly routes report/drive purchases to pay_order. However, no explicit "use this when / do not use when" rule names the alternative, so the routing is inferable rather than stated.

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