Skip to main content
Glama

Buy access to a paywalled API

buy_access

Buy a pack of calls for a paywalled API (from a 402 response, find_paywalls or a gateway_url). Returns an access_key and a payment link payable with any coin. Add pay_with_token, pay_with_chain and refund_address to get deposit instructions right away. Pass an existing access_key to top it up. Credits activate automatically once paid; then send header X-Access-Key on calls to the gateway_url.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "buy_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
speedNoOptional. Default 'best_price': Swap Ripper quotes two networks at once and uses whichever is cheaper for you (and the other if one fails); the reply's route_choice shows both. 'fast' forces the ~seconds Relay route.
access_keyNoOptional: an existing key to top up.
paywall_idNoe.g. pw_abc123... (or use gateway_url).
request_idNoRecommended: your own unique ID for this payment (e.g. a UUID). Retrying with the same request_id returns the SAME payment instructions, so you never pay twice.
gateway_urlNoThe paywalled URL you called.
pay_with_chainNo
pay_with_tokenNo
refund_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: states the return values (access_key plus a payment link payable with any coin), the activation timing ('credits activate automatically once paid'), the follow-up requirement (send X-Access-Key header to gateway_url), and the top-up path. The request_id note also explains a conditional idempotency guarantee that the annotations (idempotentHint=false) do not convey, so the agent understands how to avoid double payment.

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

Conciseness5/5

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

Front-loaded with purpose and inputs, then flows through return values, optional fast-path parameters, top-up behavior, and the post-payment step. Every sentence carries an operational fact; nothing is redundant.

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 8 optional parameters, no output schema, and a mutating money-moving operation, the description does the heavy lifting: it explains returns, activation, and the header needed to use the key. The only meaningful gap is that it says nothing about cost/route choice, leaving the speed parameter and price expectations undocumented in prose.

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

Parameters4/5

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

Schema coverage is 63%, and the description adds real meaning for the undocumented parameters by grouping pay_with_token, pay_with_chain and refund_address as the 'get deposit instructions right away' path, and by defining access_key as a top-up switch. It leaves the speed parameter entirely to the schema, so it supplements rather than fully compensates for the remaining coverage gap.

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?

Opens with a specific verb+resource ('Buy a pack of calls for a paywalled API') and immediately names the three sources of the paywall (402 response, find_paywalls, gateway_url), which distinguishes it from discovery tools like find_paywalls and status tools like access_status. An agent can identify the action and its input origin without opening the schema.

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?

Gives clear triggering context (you hit a 402 or found a paywall) plus conditional branches: pass an existing access_key to top up, add pay_with_token/pay_with_chain/refund_address to get deposit instructions immediately. It does not explicitly route the agent to check_payment or access_status for post-purchase verification, so the alternative-selection guidance is clear but not exhaustive.

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.