X402 Inspect Challenge
x402_inspect_challengeInspect a fresh x402 v2 challenge without sending payment. Compatible alias of check_payment with the same schema, 10-second unsigned probe and result. Use before a paid resource call; do not use as a signer, receipt verifier or settlement proof. Non-402 and incomplete challenges remain null rather than receiving invented defaults.
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_inspect_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full public HTTPS URL to inspect with an unsigned GET. No payment headers; redirects, credentials and private network targets are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| is_x402 | Yes | True only for HTTP 402 with complete validated x402 v2 requirements. | |
| challenge | Yes | Fresh validated requirements, or null. No synthetic defaults are inserted. | |
| http_status | Yes | Observed HTTP status; zero means no HTTP response was received. | |
| raw_headers | No | Allowlisted response headers only; never cookies or authentication headers. | |
| payment_sent | Yes | ||
| missing_fields | No | ||
| canonical_receiver_match | No | Comparison with documented SML receiver; a mismatch never rewrites upstream requirements. |