# SQL Query Explainer

> SQL Query Explainer is a paid API for AI agents from released-mph-process-lib.trycloudflare.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Accepts a SQL query and returns a plain-English explanation of what the query does

## Facts

- Endpoint: POST https://released-mph-process-lib.trycloudflare.com/v1/sql-explain?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sql-query-explainer-02e5e339
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FQxOaYZ3d03ZLVEgwqdBd

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 sql-query-explainer-02e5e339 -d '<json body>'
```

Example prompt: Can you explain what this SQL query does in plain English? SELECT u.name, COUNT(o.id) AS order_count FROM users u LEFT JOIN orders o ON u.id = o.user_id WHERE o.created_at > '2024-01-01' GROUP BY u.name HAVING COUNT(o.id) > 5 ORDER BY order_count DESC;

## When to prefer this

Choose this endpoint when you need a quick, affordable plain-English breakdown of a SQL query without setting up a full LLM pipeline. It is ideal for developer tools, documentation generators, onboarding workflows, or any agent that needs to surface SQL logic to non-technical users. At $0.01 per call it is cost-effective for high-volume use cases where SQL explanation is a recurring need.

## Known failure modes

- Missing or empty SQL query in message — returns an error or unhelpful response
- Extremely complex or nested queries may produce incomplete or partially accurate explanations
- Non-standard SQL dialects (e.g. vendor-specific syntax) may not be fully understood
- Malformed or syntactically invalid SQL may yield an error or degraded explanation
- Rate limiting or payment failure (x402) may prevent the call from completing

## How this service works

Explain a SQL query in plain English. Paste query in message.

## Output

A natural-language explanation of the SQL query, describing what tables are accessed, what filtering or joining logic is applied, what is computed or aggregated, and what the overall result set represents — suitable for developers and non-technical audiences alike.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "usage": {
   "type": "object"
  },
  "choices": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sql-query-explainer-02e5e339/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from released-mph-process-lib.trycloudflare.com](https://www.zero.xyz/host/released-mph-process-lib.trycloudflare.com/llms.txt)
