Skip to main content
Glama

API access buy

api_access_buy

Buy 1,000 basic data reads for US$1, valid for 30 days. Requires explicit payment. 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentNoSigned x402 payload, after authorizing the quote.
api_passYesPrivate pass: api_<32 random hex>_<64 random hex>. Save before buying.
transactionNoBase transaction hash to reconcile an uncertain payment with the same pass and original payload.
credit_tokenNoExisting prepaid credit token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations give the safety profile (not read-only, not destructive), while the description adds genuine operational context: payment is explicit, no auto-renewal, retries with the same pass reconcile to one purchase, and the X-API-Pass/X-API-Credits-Remaining headers. The retry-recovery guarantee sits in mild tension with idempotentHint=false, though it can be read as pass-scoped reconciliation rather than general idempotency; more explicit disclosure of what happens on failure or with a spent pass would help.

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?

Six short sentences, front-loaded with the price and validity, then payment and retry rules, then headers. Dense but each sentence carries distinct information; no filler.

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?

With no output schema and a one-of-many input shape, the description still covers cost, duration, payment requirement, retry reconciliation, non-renewal, scope exclusion and the response header where remaining credits appear. Missing only explicit routing guidance versus the billing/pricing siblings.

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 the property descriptions already explain the pass format, the signed x402 payment payload, reconciliation via transaction hash, and prepaid credit_token. The description adds only the price/validity and header names, not additional per-parameter semantics, so the schema remains the primary source.

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 with concrete economics: 'Buy 1,000 basic data reads for US$1, valid for 30 days.' It also carves out scope by noting that OCR, AI, documents and delivery 'keep their own tariffs,' so an agent can distinguish it from sibling billing/pricing/api_access 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 gives clear prerequisites ('Requires explicit payment') and lifecycle rules ('No automatic renewal', 'Same pass in retries recovers the same purchase'), plus the operational condition for using the resulting pass ('Send X-API-Pass on eligible data reads'). It stops short of naming an alternative tool or stating when NOT to buy (e.g., when an existing credit_token should be reused).

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