Supabase: Create policy
supabase_create_policyCreate Row Level Security policies on Supabase tables to control which roles can read or modify rows. Define the command, roles, and using/check expressions to enforce per-row access rules.
Instructions
[UNIFIED] Create a Row Level Security (RLS) policy on a table.
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": {
"site": "<site>",
"table": "<table>",
"name": "<name>",
"definition": "<definition>"
},
"name": "supabase_create_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| site | Yes | ||
| check | No | ||
| roles | No | ||
| table | Yes | ||
| schema | No | public | |
| command | No | ALL | |
| definition | Yes |