Skip to main content
Glama

x402_pay_request

Send HTTP requests to premium APIs by automatically handling x402 cryptocurrency payment requirements. Specify URL, method, headers, and max payment to access paid endpoints.

Instructions

Make an HTTP request that automatically handles x402 (HTTP 402) payment requirements. Use this to access premium APIs that require cryptocurrency payment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to request
bodyNoRequest body (for POST/PUT)
methodNoHTTP methodGET
headersNoAdditional headers
maxPaymentNoMaximum payment in USD (e.g. '0.50')1.00
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing behavioral traits. It mentions automatic handling of payment requirements but fails to disclose that this involves spending cryptocurrency, requires a configured wallet, or has a maximum payment limit. The financial risk and side effects are not communicated.

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?

Two sentences, concise and front-loaded. It communicates the core purpose and usage context with no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool makes payments and performs HTTP requests, but the description does not explain the response format, potential failures, or prerequisites like wallet configuration. Given the financial implications and the lack of an output schema, the description is incomplete for an agent to safely and correctly invoke the tool.

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?

The input schema describes all parameters with 100% coverage, so the baseline is 3. The description adds a small amount of context around 'payment requirements' that relates to maxPayment, but it doesn't enrich the understanding of individual parameters beyond the schema descriptions.

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 clearly states the tool's function: making HTTP requests that automatically handle x402 (HTTP 402) payment requirements. It distinguishes itself from sibling x402 tools by combining request execution with payment handling, and explicitly mentions the use case of accessing premium APIs.

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?

The description says 'Use this to access premium APIs that require cryptocurrency payment,' which provides a clear intended context. However, it does not mention alternatives or when not to use it (e.g., if only payment is needed without making a request).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nirholas/universal-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server