Inspect an x402 endpoint (price + requirements, no payment)
inspect_endpointFetch an x402 endpoint's 402 payment requirements without paying: accepted schemes, networks, assets, prices, and pay-to addresses. For free endpoints, return the result; check cost before paying.
Instructions
Fetch an x402 endpoint and return its 402 payment requirements — every accepted scheme, network, asset, price and pay-to address — WITHOUT paying. If the endpoint is free, returns its result instead. No signer required. Use this to learn the cost before pay_and_call.
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": "inspect_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 endpoint URL to inspect. | |
| body | No | JSON body for a POST probe. | |
| method | No | HTTP method to probe with. | GET |