{"name":"sql-query-review","description":"Turn a plain-English request into SQL and get a review of it before you run it. Composite: one call runs sql-from-prompt, then summarize-text over the generated SQL, explanation, destructive-operation flag, and warnings to produce an executive review. Send a natural-language prompt and an optional schema or dialect; get back the SQL, a destructive flag, warnings, and a plain-language review brief you can hand to a reviewer. Use it as a text-to-SQL API, SQL safety review, or natural-language query generator with a built-in guard check.","price":"$0.04","method":"POST","input_schema":{"properties":{"prompt":{"type":"string","description":"Natural-language analytics or database request. Max 5000 chars."},"schema":{"type":"string","description":"Optional schema DDL or table/column description. Max 30000 chars."},"dialect":{"type":"string","enum":["postgres","mysql","sqlite","bigquery","snowflake","mssql","duckdb","ansi"],"description":"SQL dialect. Default postgres."}},"required":["prompt"]},"input_example":{"prompt":"Top 10 customers by lifetime spend in 2026","dialect":"postgres"},"output_example":{"sql":"SELECT customer_id, SUM(amount) AS lifetime_spend FROM orders WHERE created_at >= DATE '2026-01-01' GROUP BY customer_id ORDER BY lifetime_spend DESC LIMIT 10;","dialect":"postgres","is_destructive":false,"warnings":["Assumes orders.amount stores spend in one currency."],"review":"Headline: This is a read-only top-customer query...","composed_of":["sql-from-prompt","summarize-text"],"components":[{"name":"sql-from-prompt","ok":true,"ms":1800},{"name":"summarize-text","ok":true,"ms":1200}],"degraded":false},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}