Add or remove a group member
set_group_memberAdd a person to a group, or remove them with member: false. Ids come from get_guard. 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": {
"groupId": "<groupId>",
"userId": "<userId>",
"member": "<member>"
},
"name": "set_group_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| member | Yes | true adds, false removes. | |
| userId | Yes | ||
| groupId | Yes |