Pay and Fetch [Paid: NGT, capped]
pay_and_fetchFetches a paywalled URL and automatically pays HTTP 402 requests in NGT on Base within your per-call cap and session budget, returning the response with payment details.
Instructions
Fetch a paid URL. If the site asks for payment (HTTP 402), pay automatically in NGT on Base only when the price is at or under your per-request cap and session budget. Returns the response (JSON, or text cut to the first 50,000 characters) plus amount paid, seller wallet and Base transaction. Host headers from NGT_HOST_HEADERS are added for you; you cannot set or see them. Each call spends real NGT; do not call in a loop. On failure, follow the next step in the error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "pay_and_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The paywalled https URL. | |
| body | No | JSON request body for POST. | |
| method | No | ||
| max_price_ngt | No | Most to pay for this call, in NGT. Cannot exceed the server cap of 0.01 NGT. | |
| max_price_usdc | No | Ignored: the user has not turned USDC on, so this server pays only NGT. |