Skip to main content
Glama

API access buy

api_access_buy

Buy 1000 basic data reads for US$1, valid for 30 days. Same pass in retries recovers the same purchase. No automatic renewal. OCR, AI, documents and delivery keep their own tariffs. Send X-API-Pass on eligible data reads; remaining credits come in X-API-Credits-Remaining. With prepaid credit, you can skip this purchase: send X-Credito (or Authorization: Bearer cred_…) on the data read, and after the free allowance the origin buys these packages from the credit, one at a time.

Input Schema

NameRequiredDescriptionDefault
paymentNoSigned x402 authorization from the 402 quote, maximum 16 KiB.
api_passYesPrivate pass: api_<32 random hex>_<64 random hex>. Save before buying.
transactionNoConfirmed Base transaction hash for reconciliation with the original pass and signed payment. Never creates another charge.
credit_tokenNoExisting prepaid credit token; alternative to x402.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

With annotations only covering hints, the description carries useful extra context: price, 30-day validity, no automatic renewal, retry recovery, and how the pass/credits headers appear on subsequent reads. Note a mild tension: 'Same pass in retries recovers the same purchase' reads as idempotent behavior while idempotentHint=false, though the hint plausibly refers to the call itself rather than same-pass reconciliation. It never states what happens if payment and api_pass disagree or whether a failed signed payment charges anything.

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 commercial terms are front-loaded in the first sentence, then retry, renewal and payment-alternative details follow in short clauses. Some of the header mechanics ('Send X-API-Pass on eligible data reads') belong more to the read tools than to a purchase and make it slightly longer than necessary.

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 payment tool with no output schema it covers cost, duration, retry safety, renewal policy and the credit alternative — enough for an agent to act correctly. It omits the shape of the successful response (e.g., whether the pass is echoed back or only credits remain) and failure modes for invalid signed payments.

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?

Schema description coverage is 100% and each of the four parameters already has its own description, so the description is not required to compensate. It adds no parameter-level detail beyond naming the X-API-Pass / X-Credito / Bearer cred_ mechanisms at a conceptual level, so baseline 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 first sentence gives a concrete verb, unit, price and validity window ('Buy 1000 basic data reads for US$1, valid for 30 days'), which tells an agent exactly what the tool transacts. It also fences off sibling scope by noting OCR, AI, documents and delivery have their own tariffs, so an agent won't confuse this with the other access/pricing tools.

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 supplies an explicit alternative path ('With prepaid credit, you can skip this purchase: send X-Credito…') and a retry condition ('Same pass in retries recovers the same purchase'), which is real routing guidance. It stops short of stating preconditions such as what to do if a pass is already held or which data reads are 'eligible', leaving a small amount of inference.

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.