x402_pay_for_request
Make HTTP requests to premium APIs that require crypto payment. Automatically handles x402 (HTTP 402) payment requirements, showing the payment amount before confirming.
Instructions
Make an HTTP request that automatically handles x402 (HTTP 402) payment requirements. Use this to access premium APIs that require cryptocurrency payment. Shows payment amount before confirming.
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": "x402_pay_for_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to request | |
| body | No | Request body (for POST/PUT) | |
| method | No | HTTP method | GET |
| headers | No | Additional headers | |
| maxPayment | No | Maximum payment in USD (e.g. '0.50') | 1.00 |