check_db_policies
Analyze SQL migrations and Firebase rules to detect missing row-level security, permissive policies, and open Firestore access before deployment.
Instructions
Preflight check #1 (static): analyse SQL migrations and Firebase rules in a project directory — tables created without ENABLE ROW LEVEL SECURITY, policies with USING(true)/WITH CHECK(true), Firestore rules with 'allow ...: if true'. Returns an empty findings list with an explanatory summary when no DB artifacts exist.
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": {
"target": "<target>"
},
"name": "check_db_policies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Absolute or relative path to the project directory |