Explain permissions
explain_permissionsChecks whether a bot or member has a permission server-wide or in a channel, then explains the result through roles and overwrites.
Instructions
Answer whether an actor (the bot, or a member) has a given permission, server-wide or in a channel, and explain the result through the role and overwrite chain. The answer is Discord's own permission check when Discord gives one, so it includes the implicit rules (a missing View Channel cancels what depends on it).
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": {
"actor": "<actor>",
"permission": "<permission>"
},
"name": "explain_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | A member name or ID, or "bot". | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| channel | No | Check in this channel instead of server-wide. | |
| permission | Yes | Permission name, like manage_messages. |