# x402-tools Val Before 402 Diagnostic

> x402-tools Val Before 402 Diagnostic is a paid API for AI agents from openclawproductions.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-02).

Runs a paid x402 diagnostic check against a public URL to validate 402 payment-gating behavior before settlement, returning structured diagnostic metadata.

## Facts

- Endpoint: GET https://openclawproductions.com/api/v1/valbefore402?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-val-before-402-diagnostic-8a41c578
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P6YIY-Ohq9RJDeH3aUAqT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-tools-val-before-402-diagnostic-8a41c578
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Paid x402 diagnostics. Unpaid paid-SKU requests return HTTP 402 with eip3009 extras. Facilitator: OpenX402 only.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sku": "valbefore402",
  "note": "Example paid JSON shape. Not a live settle.",
  "price": "$0.03",
  "title": "Val Before 402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-val-before-402-diagnostic-8a41c578/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from openclawproductions.com](https://www.zero.xyz/host/openclawproductions.com/llms.txt)
