Skip to main content
Glama

x402_pay_for_request

Make HTTP requests to premium APIs that require crypto payment. Automatically handles x402 (HTTP 402) payment requirements, showing the payment amount before confirming.

Instructions

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

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?

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It reveals that the tool 'Shows payment amount before confirming,' which is a useful safeguard. However, it omits critical facts: that a payment will actually be executed, that funds will be spent irreversibly, and that the user must have sufficient balance. This is a significant gap for a payment tool.

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?

The description is three concise sentences totaling about 40 words. It is front-loaded with the primary action, followed by the use case and a key behavioral note. Every sentence earns its place 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?

This tool has no output schema and no annotations, so the description must compensate. It explains the tool's purpose and use case but does not describe what happens after payment confirmation, what the response contains, or failure modes. For a tool that executes financial transactions, this is incomplete.

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 baseline is 3. The description itself does not add parameter semantics, but the input schema already documents all five parameters with descriptions. The description's mention of showing payment amount aligns with the maxPayment parameter but does not add further detail.

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?

The description clearly states the tool's function: 'Make an HTTP request that automatically handles x402 (HTTP 402) payment requirements.' This is a specific verb and resource. It also identifies the use case for premium APIs. However, it does not explicitly distinguish itself from similarly named siblings like x402_pay_request or x402_send_payment.

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 provides explicit guidance: 'Use this to access premium APIs that require cryptocurrency payment.' This clearly indicates when to use the tool. It lacks alternatives or exclusions, but the stated context is sufficient for a single-purpose tool.

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