check_rls_config
Audit Supabase Row Level Security in SQL migrations to detect disabled RLS, missing policies, permissive USING(true) rules, and missing FORCE RLS, returning severity, file paths, and fix snippets.
Instructions
Check Supabase Row Level Security (RLS) configuration in a project. Analyzes SQL migration files for tables without RLS enabled, tables with RLS but no policies (accidental lockout), permissive USING(true) anti-patterns, and missing FORCE ROW LEVEL SECURITY. Returns findings with severity, file paths, and fix SQL snippets.
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": {
"project_path": "<project_path>"
},
"name": "check_rls_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Absolute path to the project directory to audit. Must be a directory you own or manage. |