Skip to main content
Glama
dinggi5

Kura

x402_fetch

Fetches a URL and returns its content. If the server charges 402, prompts the user to approve USDC payment on Base, then re-fetches with the payment header to unlock the resource.

Instructions

Fetches an x402 paid resource (a URL). It GETs the URL first; if the server answers 402 Payment Required, it asks the user to approve the required payment (exact scheme, the active Base network, USDC) in the wallet app, builds an EIP-3009 signature, and re-requests the same URL with an X-PAYMENT header to return the content. If no payment is required (no 402), it just returns the body. Approval works exactly as in request_payment (password by default; automatic only when the user has turned autopay on), and the app enforces per-payment and daily limits and the emergency lock. Never send a password as an argument. Arguments: url (required), memo (what the payment is for — the user reads it to decide). Returns: paid, status, http_status, body, and amount/pay_to/settlement when paid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the paid resource to fetch (http/https).
memoNoWhat the payment is for — the user reads this in the approval window, so fill it in.
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers: it discloses the full network behavior (GET, 402 handling, EIP-3009 signature, X-PAYMENT header), the user approval experience, autopay and password rules, per-payment and daily limits, emergency lock, and the explicit warning not to send a password. This is exceptional transparency for an unannotated tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is longer than average but every sentence carries useful information: process, security, args, and return values are all clearly separated. It is front-loaded with the core purpose and then expands logically. It could be slightly tighter, but there is no filler or redundancy.

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

Completeness5/5

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

Despite having no output schema, the description enumerates the return fields ('paid, status, http_status, body, and amount/pay_to/settlement when paid') and covers key context such as the active Base network, USDC, payment limits, and the emergency lock. This is more than enough for an agent to decide whether and how to invoke the tool correctly.

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%, so the baseline is 3. The description adds some value for memo by explaining the user sees it in the approval window, and it warns not to send a password, but it doesn't fundamentally extend the schema semantics for either parameter. It essentially restates and clarifies, which is adequate but not extra-rich.

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 opens with a specific verb and resource: 'Fetches an x402 paid resource (a URL)', and then explains the exact HTTP flow (GET, 402, payment, re-request). It clearly distinguishes itself from siblings by naming 'request_payment' as a separate approval flow and by stating that approval works 'exactly as in request_payment', while the other siblings (balances, history, wallet status) are obviously not about fetching paid resources.

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 strongly implies when to use the tool: whenever a URL may require x402 payment, and explains the conditional path when no payment is required. It references request_payment for the approval behavior, giving cross-tool context, though it does not explicitly list exclusions or say 'use request_payment when you only need to send a payment'. Still, the context is clear and actionable.

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/dinggi5/kura'

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