Save policy
save_policyCreate a plain-language policy for AI queries, such as "salaries only in aggregate", or replace one (pass id from get_guard). connectionId null applies it to every connection; action is block or ask_admin. 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": {
"text": "<text>"
},
"name": "save_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| text | Yes | ||
| action | No | ||
| enabled | No | ||
| connectionId | No |