sql_injection_ast_guard
Audits LLM-generated SQL by inspecting its AST to block tautology-based SQL injection, UNION data leaks, and destructive DROP/TRUNCATE statements before execution.
Instructions
Statically validates LLM-generated SQL queries via AST inspection to block SQLi tautologies, UNION leaks, and DROP/TRUNCATE.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql_query": "<sql_query>"
},
"name": "sql_injection_ast_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql_query | Yes | SQL query to audit |