oracle_diagnose_402
Decode and audit a single HTTP 402 PAYMENT-REQUIRED header to validate Base USDC terms, Bazaar schema, and resource URL alignment before facilitator settlement.
Instructions
Decode and audit an HTTP 402 PAYMENT-REQUIRED header (base64 or JSON) for accepts[], Base USDC terms, extensions.bazaar schema validity, and resource.url alignment ($0.50 USDC on Base). Unpaid calls return 402 terms. Use this instead of oracle_review_mcp when debugging a single 402 payload before facilitator settlement.
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": {
"challenge_b64_or_json": "<challenge_b64_or_json>"
},
"name": "oracle_diagnose_402"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_url | No | Optional canonical HTTPS URL of the protected endpoint being challenged. | |
| challenge_b64_or_json | Yes | Raw base64-encoded PAYMENT-REQUIRED header value or its decoded JSON string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | Risk warning for malformed indexing or wasted settlement gas. | |
| wisdom | Yes | Actionable explanation of what passed or failed in the 402 handshake. | |
| verdict | Yes | Diagnosis code such as challenge_shape_ok, missing_bazaar_extension, or missing_accepts. | |
| citations | No | Coinbase CDP validate and Bazaar doc links. | |
| implementation_prompt | No | Step-by-step repair instructions for the challenged endpoint. |