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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.13.3

TDQS

A4/5.0
Behavior3/5

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

Annotations already show openWorldHint=true and readOnlyHint=false. The description adds that it deducts from the allowance wallet, forwards Idempotency-Key, and returns a receipt. However, it omits potential side effects such as permanent payments or failure modes. With annotations covering the core non-read-only nature, the description adds moderate value.

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, minimal fluff. Every phrase carries meaning: the payment challenge handling, defaults, wallet, idempotency, and return content. No wasted words.

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?

Given 6 parameters, no output schema, and openWorldHint, the description covers the payment flow, default ceiling, and return structure. Missing details about error handling (e.g., insufficient balance, unsupported URLs) but still provides a solid operational overview.

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% with descriptions for each parameter. The description reinforces defaults (max_usd_micros) and connects idempotency_key to retry semantics. This adds some context beyond the schema but does not introduce new parameter meaning.

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 calls an arbitrary HTTP(S) URL and automatically satisfies x402 payment challenges. This distinct verb+resource combination sets it apart from siblings like list_secrets or contract_call.

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 implies the tool is for paying HTTP endpoints that use x402. It mentions defaults and forwarding behavior but does not explicitly contrast with other tools or specify when not to use it. Still, the context is adequate.

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

Deploy Server

Other Tools