Skip to main content
Glama
inviti8

Obolus

by inviti8

x402_fetch

Fetch URLs and automatically settle x402 payment challenges up to a set price cap, returning the response body or writing to a file for binary data.

Instructions

Fetch a URL, paying automatically if it answers with an x402 payment challenge.

SPENDS REAL MONEY when the network is mainnet. Payment comes from a short-lived session account funded from the user's vault, never from the vault itself, so the most any single call can lose is the session balance.

Returns the response body plus, when a payment happened, the price, the merchant address, the transaction id and the settlement receipt.

What the receipt proves: that this payment settled on chain. It does NOT prove the resource was correct, honest, or worth the price - a settled payment and a useful answer are different claims.

Refuses, without spending, when: the price exceeds max_price_usdc or the configured per-call cap; the day's spending cap would be exceeded; the merchant is outside an allowlist the user enabled; the resource asks for an asset this wallet does not hold; the payTo address is one of ours (paying yourself is not a payment); or a mainnet resource is not https. Each refusal says which rule it hit.

Unpaid URLs are fine - if the server answers normally, the body is returned and nothing is spent.

FILES. body_file sends the bytes at a path instead of body, and output_file writes the response to a path instead of returning it inline. Use them for anything binary or large - an image to be signed, a document to be processed - because binary cannot survive being passed as text and a large body would swamp the conversation. Both are confined to a directory the user configured, and both are DISABLED unless they configured one; a path outside it is refused. Pass body or body_file, never both.

JSON. Pass body as an object or array, not as a string of JSON - it is sent as application/json and you do not need to set content_type. A string body is sent verbatim, which is what you want for text, XML or form encoding. If the exact bytes matter - anything the endpoint hashes or signs over - use body_file, which is never re-encoded.

content_type sets the request's Content-Type. Some paid endpoints require it and reject the request without it - AFTER taking payment, because the payment is verified before the handler runs. Set it whenever the body is not plain text.

Response headers the merchant set are returned under response_headers; some endpoints put results there that appear nowhere in the body.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
bodyNo
methodNoGET
body_fileNo
output_fileNo
content_typeNo
max_price_usdcNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full disclosure burden. It candidly states that real money can be spent on mainnet, that losses are capped at the session balance, that the receipt does not prove resource quality, and that refusals occur without spending. It also discloses file path confinement and the payment-before-verification risk with content_type.

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 long but tightly structured with bolded section headers and front-loaded risk warnings. Every section addresses a practical operational concern, and the length is justified by the payment risk and param complexity. There is no filler or repetition.

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 high-stakes tool with no annotations, the description is nearly complete: it covers spending limits, refusal conditions, return fields, file handling, JSON serialization, and content_type pitfalls. The only notable omission is guidance for the `method` parameter, which prevents a perfect completeness score.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It does an excellent job explaining body, body_file, output_file, content_type, max_price_usdc, and url behavior. However, the `method` parameter is never mentioned, leaving a gap for agents unsure whether to send GET, POST, or other methods.

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: 'Fetch a URL, paying automatically if it answers with an x402 payment challenge.' It clearly distinguishes this from the sibling wallet_status and wallet_funding_info tools by making it a network-fetch/payment tool rather than a wallet inspection tool.

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

Usage Guidelines5/5

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

The description gives explicit usage guidance: when payment happens, when it refuses without spending, that unpaid URLs are safe, and when to choose body_file vs body vs output_file. It also warns about content_type and binary payloads. These are concrete, decision-relevant conditions.

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

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/inviti8/Obolus'

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