{"uid":"cap_P6YIY-Ohq9RJDeH3aUAqT","slug":"x402-tools-val-before-402-diagnostic-8a41c578","name":"x402-tools Val Before 402 Diagnostic","description":"Paid x402 diagnostics. Unpaid paid-SKU requests return HTTP 402 with eip3009 extras. Facilitator: OpenX402 only.","url":"https://openclawproductions.com/api/v1/valbefore402?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string","description":"Public 402 or well-known URL. Defaults to this origin's Pipe Check."},"origin":{"type":"string","description":"Public origin URL. Alias of url."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"sku":"valbefore402","note":"Example paid JSON shape. Not a live settle.","price":"$0.03","title":"Val Before 402"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wRF36MKFWAAJrNIOiejCP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a paid x402 diagnostic check against a public URL to validate 402 payment-gating behavior before settlement, returning structured diagnostic metadata.","exampleAgentPrompt":"Run a Val Before 402 diagnostic on https://example.com/api/paid-resource using a GET request and tell me what SKU, price, and payment extras it exposes before I settle.","exampleUseCases":[{"title":"Pre-settlement integration check","prompt":"Before I pay anything, can you probe https://myapp.com/api/premium-data with a GET request using the x402 Val Before 402 tool and tell me what SKU and pricing info it returns?"},{"title":"Debugging a 402 gating setup","prompt":"My endpoint at https://myservice.io/api/v2/report is supposed to return a 402 with EIP-3009 extras — can you run the Val Before 402 diagnostic on it to confirm everything looks right?"},{"title":"Surveying unknown 402 endpoints","prompt":"I found this URL https://thirdparty.xyz/api/data and I think it's x402-gated — can you use the Val Before 402 check to inspect what it charges and what payment method it expects?"}],"resultDescription":"Returns a JSON object with the endpoint's SKU name, a descriptive note about the paid resource, its price in USDC, and a human-readable title. This allows agents to understand the payment gating configuration before committing a payment.","failureModes":["Request made without valid x402 payment returns HTTP 402 with EIP-3009 extras — this is expected for unpaid calls","Invalid or unreachable URL provided in the url/origin param returns an error or empty diagnostic","Non-public or firewall-blocked origin URLs may fail silently","Only OpenX402 is a supported facilitator; other facilitators will not process the payment and the call will be blocked","GET/HEAD/DELETE are the only supported HTTP methods; other methods will be rejected by schema validation"],"whenToPreferThis":"Use this endpoint when you need to inspect or validate how a specific URL is configured for x402 payment gating before executing a payment — especially when debugging EIP-3009 response shapes, auditing paid SKU metadata, or confirming a new x402 integration is returning correct 402 headers and extras. Prefer this over generic HTTP probing tools when working specifically in the x402/EIP-3009 ecosystem with OpenX402 as facilitator.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:23:36.248Z","isFirstParty":false,"canonicalSlug":"x402-tools-val-before-402-diagnostic-8a41c578"}