Save access rules
save_access_rulesCreate a group's access rules on a connection (pass connectionId and groupId, or groupId null for everyone else), or replace an existing rule set's rules (pass id from list_access_rules). Send the complete rules: this replaces them rather than merging. Also needs the execute scope. Guard decides what AI tools, including you, may do on the team's databases, so change it only when the user asked for this exact change, and say what will change first. Needs an admin, the write scope, and an admin's approval in SaturnSQL for this AI tool: without it the call fails with code GUARD_APPROVAL_REQUIRED. Then call request_guard_edit, show the user the approvalUrl, and repeat the call after they approve. An approval lasts 12 hours; call end_guard_edit when the user's changes are done. Every change is recorded in SaturnSQL with the user's 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": {
"tableAccess": "<tableAccess>",
"tables": "<tables>",
"hiddenColumns": "<hiddenColumns>",
"maskedColumns": "<maskedColumns>",
"rowFilters": "<rowFilters>"
},
"name": "save_access_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The rule set to replace. Omit to create one. | |
| tables | Yes | Tables for tableAccess only or except, as get_schema lists them. | |
| groupId | No | When creating: the group, or null for everyone else. | |
| rowFilters | Yes | ||
| tableAccess | Yes | all tables, only the listed tables, or all except the listed tables. | |
| connectionId | No | When creating: the connection. | |
| hiddenColumns | Yes | Columns as table.column. | |
| maskedColumns | Yes |