Skip to main content
Glama

API access buy

api_access_buy

Buy 1000 basic data reads for US$10, 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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "api_pass": "<api_pass>"
    },
    "name": "api_access_buy"
  }
}

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.8/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=false) it discloses price, validity window, no auto-renewal, and retry deduplication ("Same pass in retries recovers the same purchase"). That retry wording sits in tension with idempotentHint=false, but it reads as a refinement of a coarse hint rather than a flat contradiction, since a different pass does produce a new purchase. It still does not explain the x402 quote/response flow or how the purchase result is returned.

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?

The headline price and unit are correctly front-loaded and most sentences carry real information. However, the final sentence packs an entire alternative flow (credit token, header format, automatic package drawdown) into one run-on clause, and telegraphic phrasing like "Same pass in retries recovers the same purchase" costs a reading pass to parse.

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, non-renewal, product-scope exclusions, and the header that reports remaining credits, which is most of what an agent needs. Gaps remain around the prerequisite 402-quote handshake (only alluded to in the payment parameter) and the shape of a successful purchase response.

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 coverage is 100%, so all four parameters are already documented, and the description only adds retry/dedup meaning for api_pass plus a header name (X-API-Credits-Remaining). The prepaid-credit sentence describes skipping the purchase and using credit on data reads, which muddies rather than clarifies the credit_token parameter's role as an x402 alternative. Baseline 3 for a fully covered 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?

"Buy 1000 basic data reads for US$10, valid for 30 days" gives a concrete verb, unit and price, and the later line "Send X-API-Pass on eligible data reads" makes clear the actual read is a separate action, so the buy-vs-read boundary against api_access is inferable. It never names the sibling tool explicitly, so the differentiation is implied rather than stated.

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?

States a genuine when-not path: "With prepaid credit, you can skip this purchase: send X-Credito (or Authorization: Bearer cred_…)" and scopes exclusions ("OCR, AI, documents and delivery keep their own tariffs"). It does not name a tool-level alternative for the credit path, and the 402-quote prerequisite is only hinted at via the schema, but the usage context is clearer than most.

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.