x402_preflight
Pre-payment x402 endpoint preflight check: probes HTTP 402, decodes v1/v2 PAYMENT-REQUIRED header or body, validates payTo format, measures TTFB ms, and returns pay/caution/avoid verdict (?url=https://...). Price $0.005 per call via x402, USDC on Base.
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_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public HTTPS URL of an x402 endpoint to probe unpaid before paying. |