veto_query_advisor
Analyzes SQL queries and EXPLAIN ANALYZE output to provide rewrite suggestions, index recommendations, N+1 detection, and index risk assessment.
Instructions
Accepts a SQL query or EXPLAIN ANALYZE output + optional schema → returns rewrite suggestions, CREATE INDEX statements, N+1 detection, and index risk assessment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query or EXPLAIN ANALYZE output to analyze. | |
| schema | No | Optional CREATE TABLE statements or schema description. | |
| agent_response | No | Phase 2 response from the host AI (JSON). Pass this back when prompted by the server to complete the agentic loop. | |
| explain_output | No | Optional EXPLAIN ANALYZE output if available. |