pg_grant_privileges
Grant database-level privileges (e.g., SELECT, INSERT) to a PostgreSQL role, with optional grant option for the role to grant those privileges to others.
Instructions
Grant database-level PostgreSQL privileges to a 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>",
"database": "<database>",
"privileges": "<privileges>"
},
"name": "pg_grant_privileges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| database | Yes | ||
| privileges | Yes | ||
| withGrantOption | No |