Make an x402 request
make_x402_requestCalls an x402-protected URL and, if it returns HTTP 402, pays with the configured wallet or credits within spending limits, then retries and returns the response with settlement receipt.
Instructions
Calls a URL. If it answers HTTP 402, pays with the configured wallet (USDC exact) or Nevermined credits (nvm:erc4337), within the owner's per-call / per-session limits and host allowlist, then retries and returns the response with the settlement receipt. Over-limit requests are not paid.
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": "make_x402_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the x402-protected endpoint | |
| body | No | Request body. Objects/arrays are sent as JSON. | |
| method | No | HTTP method (default GET) | |
| headers | No | Extra request headers |