Audit SQL schema
audit_sqlAudit Postgres/Supabase SQL for security vulnerabilities: missing RLS, permissive policies, broad grants, search_path gaps, and sensitive column exposure. Receive a summary with ranked findings.
Instructions
Statically audit Postgres/Supabase SQL for security issues: tables missing RLS, permissive policies, broad grants to anon/public, SECURITY DEFINER search_path gaps, and sensitive columns in client-readable tables. Returns a summary + ranked findings.
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": "<sql>"
},
"name": "audit_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL schema / migration text to audit. |