guard_query
Check AI-generated SQL before execution and return an allow, review, or block decision with a clear reason to prevent unsafe database operations.
Instructions
Pre-execution safety hook for AI-generated SQL. Returns a go/no-go decision (allow/review/block) with a human-readable reason and the underlying verdict. Designed to be called before handing SQL to a database MCP server or executing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement to check. | |
| dialect | No | SQL dialect used to parse the statement. | postgres |