preflight_schema_only
Analyze SQL against pasted CREATE TABLE DDL without a database connection. Detects risky patterns like SELECT *, missing LIMIT, unindexed filters, and functions on filtered columns.
Instructions
Analyse a query against pasted CREATE TABLE DDL with NO database connection — the zero-trust, offline front door. Call when the user gave you their schema (DDL) but not DB credentials. Catches SELECT *, missing LIMIT, un-indexed filter columns, LIKE '%...', functions on filtered columns. HEURISTIC only (no live counts) and says so. No target needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ddl | Yes | ||
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |