grant_privilege
Assigns database privileges to specific users for tables, schemas, or databases. Specify permission type and object scope to control user access.
Instructions
授予权限。privilege 示例:SELECT ON TABLE t、ALL PRIVILEGES ON DATABASE d、USAGE ON SCHEMA s
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": {
"privilege": "<privilege>",
"grantee": "<grantee>"
},
"name": "grant_privilege"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grantee | Yes | 被授权的用户名 | |
| privilege | Yes | 权限与对象,如 ALL ON SCHEMA public |