Skip to main content
Glama

pay_url

Call any HTTP(S) URL and automatically settle x402 micropayment challenges, returning the HTTP response with a payment receipt.

Instructions

Call an arbitrary HTTP(S) URL and automatically satisfy a supported x402 exact-payment challenge. Defaults to a $0.10 ceiling, uses the configured allowance wallet, forwards Idempotency-Key, and returns the HTTP response plus a structured payment receipt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe HTTP(S) URL to call
bodyNoRequest body as text or a JSON object
methodNoHTTP method (default: GET)
max_usd_microsNoMaximum payment in USD micros (default: 100000, or $0.10)
idempotency_keyNoStable Idempotency-Key forwarded to the seller; on Run402 pending, retry the identical call with the same payer and key
require_receiptNoRequire a verified wallet-rooted merchant offer before payment and a matching receipt after settlement
Behavior5/5

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

Adds significant detail beyond annotations: payment challenge auto-satisfaction, default payment ceiling, allowance wallet usage, idempotency key forwarding, and response contents (HTTP response + receipt).

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?

Single focused paragraph, front-loaded with core action, no redundant phrasing. Every sentence adds relevant information.

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?

Covers purpose, payment mechanism, idempotency, return value. Lacks detail on error scenarios or behavior when URL does not support x402. Otherwise complete for a tool with no output schema.

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 covers all parameters with descriptions (100% coverage), so baseline applies. Description reinforces defaults (e.g., $0.10 ceiling) and idempotency behavior but does not add new meaning beyond schema.

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?

Description clearly states it calls an HTTP URL with automatic payment challenge satisfaction, distinguishing it from siblings focused on other operations. It specifies the action, resource, and unique capability.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides context like default ceiling, allowance wallet, and idempotency key forwarding but lacks explicit guidance on when to use vs alternatives or when not to use.

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/kychee-com/run402-mcp'

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