commands_get_command_permissions
commands_get_command_permissions
Section titled “commands_get_command_permissions”Category: commands
Get permission overrides for ONE specific command in a guild.
When to use
Section titled “When to use”When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
application_id | string | yes | Bot/app application ID |
guild_id | string | yes | Guild scope |
command_id | string | yes | Command ID (snowflake) |
Returns
Section titled “Returns”\{id, application_id, guild_id, permissions:[\{id, type, permission\}]\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
application_id | string | yes | |
guild_id | string | yes | |
permissions | array | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |
Source
Section titled “Source”packages/mcp-core/src/tools/commands/get_command_permissions.ts