rls_get_policy
Retrieve the SQL definition (USING and WITH CHECK) of an RLS policy by providing schema, table, and policy name.
Instructions
Return the definition (USING and WITH CHECK code) of an RLS policy by name.
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": {
"schema_name": "<schema_name>",
"table_name": "<table_name>",
"policy_name": "<policy_name>"
},
"name": "rls_get_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | ||
| policy_name | Yes | ||
| schema_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |