Explain and sanity-check a SQL query before running it
Explain and sanity-check a SQL query before running it: statement type, tables touched, syntax problems (quotes, parentheses, = NULL), risky patterns (UPDATE/DELETE without WHERE, DROP, NOT IN with NULLs, cartesian joins, non-sargable filters, multiple statements) and a plain-English explanation. POST {sql, dialect}.
Not tested: has real-world effectsour last check, 2026-09-28
0 of 0checks answered this week
n/amedian answer time
$0.003listed price per call
n/aprice it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://aayatai.com/sql/explain
| Category | Everything else |
|---|---|
| Provider host | aayatai.com |
| Networks | eip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"dialect": "postgres",
"sql": "DELETE FROM users WHERE last_login < NOW() - INTERVAL '2 years'"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"dialect": {
"default": "generic",
"description": "SQL dialect (used in the explanation).",
"enum": [
"postgres",
"mysql",
"sqlite",
"sqlserver",
"generic"
],
"type": "string"
},
"sql": {
"description": "The SQL to check.",
"maxLength": 8000,
"minLength": 5,
"type": "string"
}
},
"required": [
"sql"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"explanation": {
"type": "string"
},
"findings": {
"description": "error / danger / warning / info, with codes and messages.",
"items": {
"type": "object"
},
"type": "array"
},
"statements": {
"type": "integer"
},
"tables": {
"items": {
"type": "string"
},
"type": "array"
},
"type": {
"type": "string"
},
"valid": {
"description": "False if a syntax problem was found (heuristic checks, not a full parser).",
"type": "boolean"
},
"verdict": {
"enum": [
"ok",
"review",
"dangerous",
"invalid"
],
"type": "string"
}
},
"required": [
"valid",
"type",
"tables",
"findings",
"verdict",
"explanation"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}