Skip to main content
Glama
Payagents

PayAgents MCP Server

Official
by Payagents

payagents_pay_url

Access paywalled APIs by executing HTTP requests and automatically resolving L402 lightning or x402 USDC payment challenges within your spending policy.

Instructions

Execute a request to an HTTP API endpoint or paywalled resource, automatically resolving and paying any HTTP 402 / L402 Lightning or x402 Base USDC micro-payment challenges within your spending policy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL of the API endpoint or paywalled resource to access.
bodyNoOptional request payload/body to send with the request.
methodNoHTTP method to use (defaults to GET).GET
headersNoOptional additional HTTP headers.
max_amountNoMaximum USD amount willing to pay for this request (e.g. "0.01 USD" or "0.002"). Prevents unexpected high charges.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool automatically resolves and pays payment challenges, which is a significant behavioral trait (it will spend money). It also mentions 'within your spending policy' and the max_amount parameter, which adds context about spending limits. However, it doesn't disclose what happens on failure (e.g., if payment fails, if the request fails), or whether the tool modifies state on the target server. The spending behavior is the most critical disclosure and it's present.

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 a single, well-structured sentence that front-loads the core action (execute request) and then explains the key differentiator (automatic payment resolution). It's concise with no wasted words. The mention of 'within your spending policy' is a useful qualifier that adds context without bloat.

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?

For a tool that executes HTTP requests with payment handling, the description covers the essential context: what it does, how it handles payments, and the spending constraint. It doesn't describe the return format (no output schema), but for an HTTP request tool, the response is typically the HTTP response body, which is somewhat implied. The description could mention error handling or response format, but given the complexity of the tool (payment resolution), the description is reasonably complete. The lack of output schema is a minor gap.

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 schema already documents all 5 parameters. The description adds context about max_amount ('Prevents unexpected high charges') and the overall purpose of payment resolution, but doesn't add significant meaning beyond the schema. The description's mention of 'spending policy' and 'max_amount' reinforces the parameter's purpose, but the schema already covers it. Baseline 3 is appropriate.

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 purpose: executing HTTP requests to API endpoints or paywalled resources, with automatic resolution of HTTP 402/L402/x402 payment challenges. It uses specific verbs ('Execute', 'resolving', 'paying') and identifies the resource (HTTP API endpoint or paywalled resource). It distinguishes itself from siblings (get_balance, get_transaction) by focusing on executing requests with payment handling.

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 when to use this tool: when accessing an API endpoint or paywalled resource that may require micro-payments. It doesn't explicitly state when NOT to use it or mention alternatives, but the context of payment challenges is clear. Sibling tools are balance and transaction lookups, which are distinct operations, so the usage context is reasonably clear without explicit exclusions.

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/Payagents/payagents-mcp'

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