set_role
Switch the active PostgreSQL role or user for the current session, or reset to the default, so queries run with the intended permissions.
Instructions
Set active PostgreSQL role/user for the session (SET ROLE) or reset to default (RESET ROLE)
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": {
"role": "<role>"
},
"name": "set_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role or username to set (e.g. 'analyst', 'app_user', or 'NONE' / 'RESET' to restore default) |