x402 Endpoint Preflight
x402_endpoint_preflightFind out what an x402 endpoint will charge before you pay it. Probes the endpoint, reads the challenge from the header or the body, and returns the decoded price, network, asset and payTo plus the declared input and output schemas. Never sends a payment. Only reviewed origins are reachable, and a redirect is refused rather than followed. Pay 4000 atomic USDC on Base via exact x402. MCP does not pay; it provides a challenge handoff.
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_endpoint_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTPS URL of an x402 endpoint on a reviewed origin. Credentials, ports and fragments are refused. | |
| body | No | Optional JSON body to send with a POST probe. | |
| method | No | Method to probe with. Defaults to GET. |