# SQLGuard Risk Probe

> SQLGuard Risk Probe is a paid API for AI agents from sqlguard.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Synchronously evaluates a mutating SQL statement for policy risk and returns a risk score plus policy violations — without authorizing execution.

## Facts

- Endpoint: POST https://sqlguard.io/v1/probe?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sqlguard-risk-probe-9df2fdc1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5gXFLuYVXfoCXmnQ7JUkl

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 sqlguard-risk-probe-9df2fdc1 -d '<json body>'
```

Example prompt: Before we run this migration, probe this SQL for policy risk: 'DELETE FROM orders WHERE created_at < NOW() - INTERVAL 90 DAY' — I need to see the risk score and any violations flagged.

## When to prefer this

Use this endpoint when you need a cheap ($0.01), fast, synchronous risk assessment of a mutating SQL statement before deciding whether to proceed to full authorization. It is the first step in a two-step gate: probe here for risk and violations, then call /v1/cert ($0.05) only if you want an Ed25519 execution certificate. Prefer this over /v1/cert when you are not yet committed to executing — for logging, auditing, or conditional branching in an agent workflow.

## Known failure modes

- Invalid or unparseable SQL returns a parse error response
- Non-mutating SQL (SELECT) may return a not-applicable or low-risk result
- Missing or malformed request body returns a 400 bad request
- Quota exhaustion or payment failure returns a 402 or 429 error
- Network timeout if the policy engine is under load

## How this service works

SQLGuard Risk Probe $0.01 Exact — sync policy risk for mutating SQL. Returns risk + violations. NEVER authorizes execute. Upgrade to Instant Cert POST /v1/cert $0.05 for Ed25519 authorize.

## Output

Returns a risk classification (e.g. low/medium/high) and a list of specific policy violations detected in the submitted SQL mutation. Does not issue an execution certificate or authorize the query to run — that requires a separate /v1/cert call.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sqlguard-risk-probe-9df2fdc1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sqlguard.io](https://www.zero.xyz/host/sqlguard.io/llms.txt)
