query_endpoint
Probe an x402 endpoint to see its price and payment requirements without paying; returns accepted methods and prices so you can inspect costs before calling a paid API.
Instructions
Probe an x402 endpoint to see its pricing and payment requirements without paying. Returns the accept entries showing supported payment methods and prices.
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": "query_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The full URL of the endpoint to probe | |
| method | No | HTTP method to use (default: POST) |