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

A3.6/5.0
Behavior1/5

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

The description says 'Same pass in retries recovers the same purchase' and the transaction parameter 'Never creates another charge,' which conflicts with idempotentHint=false. Although it otherwise discloses useful behavior such as no automatic renewal and separate tariffs, the idempotency contradiction is material for a purchase operation.

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 core offer is front-loaded in the first sentence, and the remaining sentences cover relevant operational details. The paragraph is dense and could be structured more clearly, but most content earns its place.

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?

Given the absence of an output schema, the description provides substantial operational context: price, validity, retry behavior, no automatic renewal, excluded tariffs, response headers, and prepaid credit behavior. This is sufficient for an agent to understand what the tool does and how it fits into the payment flow.

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%, so the schema already documents payment, api_pass, transaction, and credit_token. The description adds flow context, such as saving the api_pass before buying and using the transaction hash for reconciliation, but does not add parameter syntax beyond the schema.

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 verb and resource: buying 1000 basic data reads for US$1, valid for 30 days. It also scopes what is not included (OCR, AI, documents, delivery) and mentions the prepaid alternative, making the tool's role distinguishable.

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 clear usage context: buy basic data reads, send X-API-Pass on eligible reads, and skip this purchase if using prepaid credit. It does not explicitly compare against every sibling tool, but the alternative path is named.

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.