Skip to main content
Glama
discord-mcp

discord-mcp

permissions_explain

Read-onlyIdempotent

Explain effective Discord permissions for a guild member or role, with an action and channel scope, to verify access before writes and diagnose why an action is allowed, denied, or inconclusive.

Instructions

Purpose: Explain effective Discord permissions for one guild member or one role.

When to use: - Verify a permission or supported action before a write. - Diagnose why Discord allows, denies, or cannot conclusively evaluate an action.

When NOT to use: - Mutating roles or overwrites; this tool is read-only. - Treating a partial result as permission to write.

Returns: {allowed, effective_permissions, missing_permissions, ineffective_permissions, decision_trace, role_hierarchy_check, warnings, confidence}. allowed:null means Discord did not expose enough evidence for a safe conclusion.

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": {
      "guild_id": "<guild_id>"
    },
    "name": "permissions_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoOptional high-level action; translated into its required permission constants
role_idNoRole to evaluate; mutually exclusive with user_id
user_idNoMember to evaluate; mutually exclusive with role_id
guild_idYesGuild whose permission state should be evaluated
channel_idNoOptional guild channel or thread scope. Required for channel actions.
target_role_idNoTarget role; required for assign_role or remove_role
target_user_idNoTarget member; required for kick_member, ban_member, or timeout_member
requested_permissionsNoDiscord permission constants such as VIEW_CHANNEL or SEND_MESSAGES

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "action": {
      -        "anyOf": [
      -          {
      -            "enum": [
      -              "view_channel",
      -              "send_messages",
      -              "manage_channel",
      -              "assign_role",
      -              "remove_role",
      -              "kick_member",
      -              "ban_member",
      -              "timeout_member"
      -            ],
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "administrator": {
      -        "type": "boolean"
      -      },
      -      "allowed": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "applied_role_ids": {
      -        "items": {
      -          "description": "Discord role ID",
      -          "pattern": "^\\d{17,20}$",
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "base_permissions": {
      -        "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      -        "pattern": "^\\d+$",
      -        "type": "string"
      -      },
      -      "channel_id": {
      -        "anyOf": [
      -          {
      -            "description": "Discord channel ID (snowflake)",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "confidence": {
      -        "enum": [
      -          "complete",
      -          "partial"
      -        ],
      -        "type": "string"
      -      },
      -      "decision_trace": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "after": {
      -              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      -              "pattern": "^\\d+$",
      -              "type": "string"
      -            },
      -            "allow": {
      -              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      -              "pattern": "^\\d+$",
      -              "type": "string"
      -            },
      -            "before": {
      -              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      -              "pattern": "^\\d+$",
      -              "type": "string"
      -            },
      -            "deny": {
      -              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      -              "pattern": "^\\d+$",
      -              "type": "string"
      -            },
      -            "note": {
      -              "type": "string"
      -            },
      -            "stage": {
      -              "enum": [
      -                "guild_everyone",
      -                "guild_roles",
      -                "guild_owner",
      -                "administrator",
      -                "channel_everyone",
      -                "channel_roles",
      -                "channel_member",
      -                "member_timeout"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "stage",
      -            "before",
      -            "allow",
      -            "deny",
      -            "after",
      -            "note"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "effective_permissions": {
      -        "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      -        "pattern": "^\\d+$",
      -        "type": "string"
      -      },
      -      "guild_id": {
      -        "description": "Discord guild (server) ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "guild_owner": {
      -        "type": "boolean"
      -      },
      -      "implicit_denies": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "missing_prerequisites": {
      -              "items": {
      -                "enum": [
      -                  "CREATE_INSTANT_INVITE",
      -                  "KICK_MEMBERS",
      -                  "BAN_MEMBERS",
      -                  "ADMINISTRATOR",
      -                  "MANAGE_CHANNELS",
      -                  "MANAGE_GUILD",
      -                  "ADD_REACTIONS",
      -                  "VIEW_AUDIT_LOG",
      -                  "PRIORITY_SPEAKER",
      -                  "STREAM",
      -                  "VIEW_CHANNEL",
      -                  "SEND_MESSAGES",
      -                  "SEND_TTS_MESSAGES",
      -                  "MANAGE_MESSAGES",
      -                  "EMBED_LINKS",
      -                  "ATTACH_FILES",
      -                  "READ_MESSAGE_HISTORY",
      -                  "MENTION_EVERYONE",
      -                  "USE_EXTERNAL_EMOJIS",
      -                  "VIEW_GUILD_INSIGHTS",
      -                  "CONNECT",
      -                  "SPEAK",
      -                  "MUTE_MEMBERS",
      -                  "DEAFEN_MEMBERS",
      -                  "MOVE_MEMBERS",
      -                  "USE_VAD",
      -                  "CHANGE_NICKNAME",
      -                  "MANAGE_NICKNAMES",
      -                  "MANAGE_ROLES",
      -                  "MANAGE_WEBHOOKS",
      -                  "MANAGE_EMOJIS_AND_STICKERS",
      -                  "MANAGE_GUILD_EXPRESSIONS",
      -                  "USE_APPLICATION_COMMANDS",
      -                  "REQUEST_TO_SPEAK",
      -                  "MANAGE_EVENTS",
      -                  "MANAGE_THREADS",
      -                  "CREATE_PUBLIC_THREADS",
      -                  "CREATE_PRIVATE_THREADS",
      -                  "USE_EXTERNAL_STICKERS",
      -                  "SEND_MESSAGES_IN_THREADS",
      -                  "USE_EMBEDDED_ACTIVITIES",
      -                  "MODERATE_MEMBERS",
      -                  "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      -                  "USE_SOUNDBOARD",
      -                  "CREATE_GUILD_EXPRESSIONS",
      -                  "CREATE_EVENTS",
      -                  "USE_EXTERNAL_SOUNDS",
      -                  "SEND_VOICE_MESSAGES",
      -                  "SET_VOICE_CHANNEL_STATUS",
      -                  "SEND_POLLS",
      -                  "USE_EXTERNAL_APPS",
      -                  "PIN_MESSAGES",
      -                  "BYPASS_SLOWMODE"
      -                ],
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "permission": {
      -              "enum": [
      -                "CREATE_INSTANT_INVITE",
      -                "KICK_MEMBERS",
      -                "BAN_MEMBERS",
      -                "ADMINISTRATOR",
      -                "MANAGE_CHANNELS",
      -                "MANAGE_GUILD",
      -                "ADD_REACTIONS",
      -                "VIEW_AUDIT_LOG",
      -                "PRIORITY_SPEAKER",
      -                "STREAM",
      -                "VIEW_CHANNEL",
      -                "SEND_MESSAGES",
      -                "SEND_TTS_MESSAGES",
      -                "MANAGE_MESSAGES",
      -                "EMBED_LINKS",
      -                "ATTACH_FILES",
      -                "READ_MESSAGE_HISTORY",
      -                "MENTION_EVERYONE",
      -                "USE_EXTERNAL_EMOJIS",
      -                "VIEW_GUILD_INSIGHTS",
      -                "CONNECT",
      -                "SPEAK",
      -                "MUTE_MEMBERS",
      -                "DEAFEN_MEMBERS",
      -                "MOVE_MEMBERS",
      -                "USE_VAD",
      -                "CHANGE_NICKNAME",
      -                "MANAGE_NICKNAMES",
      -                "MANAGE_ROLES",
      -                "MANAGE_WEBHOOKS",
      -                "MANAGE_EMOJIS_AND_STICKERS",
      -                "MANAGE_GUILD_EXPRESSIONS",
      -                "USE_APPLICATION_COMMANDS",
      -                "REQUEST_TO_SPEAK",
      -                "MANAGE_EVENTS",
      -                "MANAGE_THREADS",
      -                "CREATE_PUBLIC_THREADS",
      -                "CREATE_PRIVATE_THREADS",
      -                "USE_EXTERNAL_STICKERS",
      -                "SEND_MESSAGES_IN_THREADS",
      -                "USE_EMBEDDED_ACTIVITIES",
      -                "MODERATE_MEMBERS",
      -                "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      -                "USE_SOUNDBOARD",
      -                "CREATE_GUILD_EXPRESSIONS",
      -                "CREATE_EVENTS",
      -                "USE_EXTERNAL_SOUNDS",
      -                "SEND_VOICE_MESSAGES",
      -                "SET_VOICE_CHANNEL_STATUS",
      -                "SEND_POLLS",
      -                "USE_EXTERNAL_APPS",
      -                "PIN_MESSAGES",
      -                "BYPASS_SLOWMODE"
      -              ],
      -              "type": "string"
      -            },
      -            "reason": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "permission",
      -            "missing_prerequisites",
      -            "reason"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "ineffective_permissions": {
      -        "items": {
      -          "enum": [
      -            "CREATE_INSTANT_INVITE",
      -            "KICK_MEMBERS",
      -            "BAN_MEMBERS",
      -            "ADMINISTRATOR",
      -            "MANAGE_CHANNELS",
      -            "MANAGE_GUILD",
      -            "ADD_REACTIONS",
      -            "VIEW_AUDIT_LOG",
      -            "PRIORITY_SPEAKER",
      -            "STREAM",
      -            "VIEW_CHANNEL",
      -            "SEND_MESSAGES",
      -            "SEND_TTS_MESSAGES",
      -            "MANAGE_MESSAGES",
      -            "EMBED_LINKS",
      -            "ATTACH_FILES",
      -            "READ_MESSAGE_HISTORY",
      -            "MENTION_EVERYONE",
      -            "USE_EXTERNAL_EMOJIS",
      -            "VIEW_GUILD_INSIGHTS",
      -            "CONNECT",
      -            "SPEAK",
      -            "MUTE_MEMBERS",
      -            "DEAFEN_MEMBERS",
      -            "MOVE_MEMBERS",
      -            "USE_VAD",
      -            "CHANGE_NICKNAME",
      -            "MANAGE_NICKNAMES",
      -            "MANAGE_ROLES",
      -            "MANAGE_WEBHOOKS",
      -            "MANAGE_EMOJIS_AND_STICKERS",
      -            "MANAGE_GUILD_EXPRESSIONS",
      -            "USE_APPLICATION_COMMANDS",
      -            "REQUEST_TO_SPEAK",
      -            "MANAGE_EVENTS",
      -            "MANAGE_THREADS",
      -            "CREATE_PUBLIC_THREADS",
      -            "CREATE_PRIVATE_THREADS",
      -            "USE_EXTERNAL_STICKERS",
      -            "SEND_MESSAGES_IN_THREADS",
      -            "USE_EMBEDDED_ACTIVITIES",
      -            "MODERATE_MEMBERS",
      -            "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      -            "USE_SOUNDBOARD",
      -            "CREATE_GUILD_EXPRESSIONS",
      -            "CREATE_EVENTS",
      -            "USE_EXTERNAL_SOUNDS",
      -            "SEND_VOICE_MESSAGES",
      -            "SET_VOICE_CHANNEL_STATUS",
      -            "SEND_POLLS",
      -            "USE_EXTERNAL_APPS",
      -            "PIN_MESSAGES",
      -            "BYPASS_SLOWMODE"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "missing_permissions": {
      -        "items": {
      -          "enum": [
      -            "CREATE_INSTANT_INVITE",
      -            "KICK_MEMBERS",
      -            "BAN_MEMBERS",
      -            "ADMINISTRATOR",
      -            "MANAGE_CHANNELS",
      -            "MANAGE_GUILD",
      -            "ADD_REACTIONS",
      -            "VIEW_AUDIT_LOG",
      -            "PRIORITY_SPEAKER",
      -            "STREAM",
      -            "VIEW_CHANNEL",
      -            "SEND_MESSAGES",
      -            "SEND_TTS_MESSAGES",
      -            "MANAGE_MESSAGES",
      -            "EMBED_LINKS",
      -            "ATTACH_FILES",
      -            "READ_MESSAGE_HISTORY",
      -            "MENTION_EVERYONE",
      -            "USE_EXTERNAL_EMOJIS",
      -            "VIEW_GUILD_INSIGHTS",
      -            "CONNECT",
      -            "SPEAK",
      -            "MUTE_MEMBERS",
      -            "DEAFEN_MEMBERS",
      -            "MOVE_MEMBERS",
      -            "USE_VAD",
      -            "CHANGE_NICKNAME",
      -            "MANAGE_NICKNAMES",
      -            "MANAGE_ROLES",
      -            "MANAGE_WEBHOOKS",
      -            "MANAGE_EMOJIS_AND_STICKERS",
      -            "MANAGE_GUILD_EXPRESSIONS",
      -            "USE_APPLICATION_COMMANDS",
      -            "REQUEST_TO_SPEAK",
      -            "MANAGE_EVENTS",
      -            "MANAGE_THREADS",
      -            "CREATE_PUBLIC_THREADS",
      -            "CREATE_PRIVATE_THREADS",
      -            "USE_EXTERNAL_STICKERS",
      -            "SEND_MESSAGES_IN_THREADS",
      -            "USE_EMBEDDED_ACTIVITIES",
      -            "MODERATE_MEMBERS",
      -            "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      -            "USE_SOUNDBOARD",
      -            "CREATE_GUILD_EXPRESSIONS",
      -            "CREATE_EVENTS",
      -            "USE_EXTERNAL_SOUNDS",
      -            "SEND_VOICE_MESSAGES",
      -            "SET_VOICE_CHANNEL_STATUS",
      -            "SEND_POLLS",
      -            "USE_EXTERNAL_APPS",
      -            "PIN_MESSAGES",
      -            "BYPASS_SLOWMODE"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "permission_source_channel_id": {
      -        "anyOf": [
      -          {
      -            "description": "Discord channel ID (snowflake)",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "requested_permissions": {
      -        "items": {
      -          "enum": [
      -            "CREATE_INSTANT_INVITE",
      -            "KICK_MEMBERS",
      -            "BAN_MEMBERS",
      -            "ADMINISTRATOR",
      -            "MANAGE_CHANNELS",
      -            "MANAGE_GUILD",
      -            "ADD_REACTIONS",
      -            "VIEW_AUDIT_LOG",
      -            "PRIORITY_SPEAKER",
      -            "STREAM",
      -            "VIEW_CHANNEL",
      -            "SEND_MESSAGES",
      -            "SEND_TTS_MESSAGES",
      -            "MANAGE_MESSAGES",
      -            "EMBED_LINKS",
      -            "ATTACH_FILES",
      -            "READ_MESSAGE_HISTORY",
      -            "MENTION_EVERYONE",
      -            "USE_EXTERNAL_EMOJIS",
      -            "VIEW_GUILD_INSIGHTS",
      -            "CONNECT",
      -            "SPEAK",
      -            "MUTE_MEMBERS",
      -            "DEAFEN_MEMBERS",
      -            "MOVE_MEMBERS",
      -            "USE_VAD",
      -            "CHANGE_NICKNAME",
      -            "MANAGE_NICKNAMES",
      -            "MANAGE_ROLES",
      -            "MANAGE_WEBHOOKS",
      -            "MANAGE_EMOJIS_AND_STICKERS",
      -            "MANAGE_GUILD_EXPRESSIONS",
      -            "USE_APPLICATION_COMMANDS",
      -            "REQUEST_TO_SPEAK",
      -            "MANAGE_EVENTS",
      -            "MANAGE_THREADS",
      -            "CREATE_PUBLIC_THREADS",
      -            "CREATE_PRIVATE_THREADS",
      -            "USE_EXTERNAL_STICKERS",
      -            "SEND_MESSAGES_IN_THREADS",
      -            "USE_EMBEDDED_ACTIVITIES",
      -            "MODERATE_MEMBERS",
      -            "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      -            "USE_SOUNDBOARD",
      -            "CREATE_GUILD_EXPRESSIONS",
      -            "CREATE_EVENTS",
      -            "USE_EXTERNAL_SOUNDS",
      -            "SEND_VOICE_MESSAGES",
      -            "SET_VOICE_CHANNEL_STATUS",
      -            "SEND_POLLS",
      -            "USE_EXTERNAL_APPS",
      -            "PIN_MESSAGES",
      -            "BYPASS_SLOWMODE"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "role_hierarchy_check": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "actor_top_role_id": {
      -            "anyOf": [
      -              {
      -                "description": "Discord role ID",
      -                "pattern": "^\\d{17,20}$",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "allowed": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "not_applicable",
      -              "allowed",
      -              "denied",
      -              "unknown"
      -            ],
      -            "type": "string"
      -          },
      -          "target_top_role_id": {
      -            "anyOf": [
      -              {
      -                "description": "Discord role ID",
      -                "pattern": "^\\d{17,20}$",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "allowed",
      -          "actor_top_role_id",
      -          "target_top_role_id",
      -          "reason"
      -        ],
      -        "type": "object"
      -      },
      -      "subject_id": {
      -        "description": "Discord member or role ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "subject_timed_out": {
      -        "type": "boolean"
      -      },
      -      "subject_type": {
      -        "enum": [
      -          "member",
      -          "role"
      -        ],
      -        "type": "string"
      -      },
      -      "unknown_permission_bits": {
      -        "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      -        "pattern": "^\\d+$",
      -        "type": "string"
      -      },
      -      "warnings": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "guild_id",
      -      "channel_id",
      -      "permission_source_channel_id",
      -      "subject_type",
      -      "subject_id",
      -      "action",
      -      "requested_permissions",
      -      "allowed",
      -      "base_permissions",
      -      "effective_permissions",
      -      "unknown_permission_bits",
      -      "missing_permissions",
      -      "ineffective_permissions",
      -      "implicit_denies",
      -      "administrator",
      -      "guild_owner",
      -      "subject_timed_out",
      -      "applied_role_ids",
      -      "decision_trace",
      -      "role_hierarchy_check",
      -      "warnings",
      -      "confidence"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "action": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "view_channel",
      +              "send_messages",
      +              "manage_channel",
      +              "assign_role",
      +              "remove_role",
      +              "kick_member",
      +              "ban_member",
      +              "timeout_member"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "administrator": {
      +        "type": "boolean"
      +      },
      +      "allowed": {
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "applied_role_ids": {
      +        "items": {
      +          "description": "Discord role ID",
      +          "pattern": "^\\d{17,20}$",
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "base_permissions": {
      +        "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "channel_id": {
      +        "anyOf": [
      +          {
      +            "description": "Discord channel ID (snowflake)",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "confidence": {
      +        "enum": [
      +          "complete",
      +          "partial"
      +        ],
      +        "type": "string"
      +      },
      +      "decision_trace": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "after": {
      +              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +              "pattern": "^\\d+$",
      +              "type": "string"
      +            },
      +            "allow": {
      +              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +              "pattern": "^\\d+$",
      +              "type": "string"
      +            },
      +            "before": {
      +              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +              "pattern": "^\\d+$",
      +              "type": "string"
      +            },
      +            "deny": {
      +              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +              "pattern": "^\\d+$",
      +              "type": "string"
      +            },
      +            "note": {
      +              "type": "string"
      +            },
      +            "stage": {
      +              "enum": [
      +                "guild_everyone",
      +                "guild_roles",
      +                "guild_owner",
      +                "administrator",
      +                "channel_everyone",
      +                "channel_roles",
      +                "channel_member",
      +                "member_timeout"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "stage",
      +            "before",
      +            "allow",
      +            "deny",
      +            "after",
      +            "note"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "effective_permissions": {
      +        "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "guild_id": {
      +        "description": "Discord guild (server) ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "guild_owner": {
      +        "type": "boolean"
      +      },
      +      "implicit_denies": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "missing_prerequisites": {
      +              "items": {
      +                "enum": [
      +                  "CREATE_INSTANT_INVITE",
      +                  "KICK_MEMBERS",
      +                  "BAN_MEMBERS",
      +                  "ADMINISTRATOR",
      +                  "MANAGE_CHANNELS",
      +                  "MANAGE_GUILD",
      +                  "ADD_REACTIONS",
      +                  "VIEW_AUDIT_LOG",
      +                  "PRIORITY_SPEAKER",
      +                  "STREAM",
      +                  "VIEW_CHANNEL",
      +                  "SEND_MESSAGES",
      +                  "SEND_TTS_MESSAGES",
      +                  "MANAGE_MESSAGES",
      +                  "EMBED_LINKS",
      +                  "ATTACH_FILES",
      +                  "READ_MESSAGE_HISTORY",
      +                  "MENTION_EVERYONE",
      +                  "USE_EXTERNAL_EMOJIS",
      +                  "VIEW_GUILD_INSIGHTS",
      +                  "CONNECT",
      +                  "SPEAK",
      +                  "MUTE_MEMBERS",
      +                  "DEAFEN_MEMBERS",
      +                  "MOVE_MEMBERS",
      +                  "USE_VAD",
      +                  "CHANGE_NICKNAME",
      +                  "MANAGE_NICKNAMES",
      +                  "MANAGE_ROLES",
      +                  "MANAGE_WEBHOOKS",
      +                  "MANAGE_EMOJIS_AND_STICKERS",
      +                  "MANAGE_GUILD_EXPRESSIONS",
      +                  "USE_APPLICATION_COMMANDS",
      +                  "REQUEST_TO_SPEAK",
      +                  "MANAGE_EVENTS",
      +                  "MANAGE_THREADS",
      +                  "CREATE_PUBLIC_THREADS",
      +                  "CREATE_PRIVATE_THREADS",
      +                  "USE_EXTERNAL_STICKERS",
      +                  "SEND_MESSAGES_IN_THREADS",
      +                  "USE_EMBEDDED_ACTIVITIES",
      +                  "MODERATE_MEMBERS",
      +                  "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      +                  "USE_SOUNDBOARD",
      +                  "CREATE_GUILD_EXPRESSIONS",
      +                  "CREATE_EVENTS",
      +                  "USE_EXTERNAL_SOUNDS",
      +                  "SEND_VOICE_MESSAGES",
      +                  "SET_VOICE_CHANNEL_STATUS",
      +                  "SEND_POLLS",
      +                  "USE_EXTERNAL_APPS",
      +                  "PIN_MESSAGES",
      +                  "BYPASS_SLOWMODE"
      +                ],
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "permission": {
      +              "enum": [
      +                "CREATE_INSTANT_INVITE",
      +                "KICK_MEMBERS",
      +                "BAN_MEMBERS",
      +                "ADMINISTRATOR",
      +                "MANAGE_CHANNELS",
      +                "MANAGE_GUILD",
      +                "ADD_REACTIONS",
      +                "VIEW_AUDIT_LOG",
      +                "PRIORITY_SPEAKER",
      +                "STREAM",
      +                "VIEW_CHANNEL",
      +                "SEND_MESSAGES",
      +                "SEND_TTS_MESSAGES",
      +                "MANAGE_MESSAGES",
      +                "EMBED_LINKS",
      +                "ATTACH_FILES",
      +                "READ_MESSAGE_HISTORY",
      +                "MENTION_EVERYONE",
      +                "USE_EXTERNAL_EMOJIS",
      +                "VIEW_GUILD_INSIGHTS",
      +                "CONNECT",
      +                "SPEAK",
      +                "MUTE_MEMBERS",
      +                "DEAFEN_MEMBERS",
      +                "MOVE_MEMBERS",
      +                "USE_VAD",
      +                "CHANGE_NICKNAME",
      +                "MANAGE_NICKNAMES",
      +                "MANAGE_ROLES",
      +                "MANAGE_WEBHOOKS",
      +                "MANAGE_EMOJIS_AND_STICKERS",
      +                "MANAGE_GUILD_EXPRESSIONS",
      +                "USE_APPLICATION_COMMANDS",
      +                "REQUEST_TO_SPEAK",
      +                "MANAGE_EVENTS",
      +                "MANAGE_THREADS",
      +                "CREATE_PUBLIC_THREADS",
      +                "CREATE_PRIVATE_THREADS",
      +                "USE_EXTERNAL_STICKERS",
      +                "SEND_MESSAGES_IN_THREADS",
      +                "USE_EMBEDDED_ACTIVITIES",
      +                "MODERATE_MEMBERS",
      +                "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      +                "USE_SOUNDBOARD",
      +                "CREATE_GUILD_EXPRESSIONS",
      +                "CREATE_EVENTS",
      +                "USE_EXTERNAL_SOUNDS",
      +                "SEND_VOICE_MESSAGES",
      +                "SET_VOICE_CHANNEL_STATUS",
      +                "SEND_POLLS",
      +                "USE_EXTERNAL_APPS",
      +                "PIN_MESSAGES",
      +                "BYPASS_SLOWMODE"
      +              ],
      +              "type": "string"
      +            },
      +            "reason": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "permission",
      +            "missing_prerequisites",
      +            "reason"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "ineffective_permissions": {
      +        "items": {
      +          "enum": [
      +            "CREATE_INSTANT_INVITE",
      +            "KICK_MEMBERS",
      +            "BAN_MEMBERS",
      +            "ADMINISTRATOR",
      +            "MANAGE_CHANNELS",
      +            "MANAGE_GUILD",
      +            "ADD_REACTIONS",
      +            "VIEW_AUDIT_LOG",
      +            "PRIORITY_SPEAKER",
      +            "STREAM",
      +            "VIEW_CHANNEL",
      +            "SEND_MESSAGES",
      +            "SEND_TTS_MESSAGES",
      +            "MANAGE_MESSAGES",
      +            "EMBED_LINKS",
      +            "ATTACH_FILES",
      +            "READ_MESSAGE_HISTORY",
      +            "MENTION_EVERYONE",
      +            "USE_EXTERNAL_EMOJIS",
      +            "VIEW_GUILD_INSIGHTS",
      +            "CONNECT",
      +            "SPEAK",
      +            "MUTE_MEMBERS",
      +            "DEAFEN_MEMBERS",
      +            "MOVE_MEMBERS",
      +            "USE_VAD",
      +            "CHANGE_NICKNAME",
      +            "MANAGE_NICKNAMES",
      +            "MANAGE_ROLES",
      +            "MANAGE_WEBHOOKS",
      +            "MANAGE_EMOJIS_AND_STICKERS",
      +            "MANAGE_GUILD_EXPRESSIONS",
      +            "USE_APPLICATION_COMMANDS",
      +            "REQUEST_TO_SPEAK",
      +            "MANAGE_EVENTS",
      +            "MANAGE_THREADS",
      +            "CREATE_PUBLIC_THREADS",
      +            "CREATE_PRIVATE_THREADS",
      +            "USE_EXTERNAL_STICKERS",
      +            "SEND_MESSAGES_IN_THREADS",
      +            "USE_EMBEDDED_ACTIVITIES",
      +            "MODERATE_MEMBERS",
      +            "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      +            "USE_SOUNDBOARD",
      +            "CREATE_GUILD_EXPRESSIONS",
      +            "CREATE_EVENTS",
      +            "USE_EXTERNAL_SOUNDS",
      +            "SEND_VOICE_MESSAGES",
      +            "SET_VOICE_CHANNEL_STATUS",
      +            "SEND_POLLS",
      +            "USE_EXTERNAL_APPS",
      +            "PIN_MESSAGES",
      +            "BYPASS_SLOWMODE"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "missing_permissions": {
      +        "items": {
      +          "enum": [
      +            "CREATE_INSTANT_INVITE",
      +            "KICK_MEMBERS",
      +            "BAN_MEMBERS",
      +            "ADMINISTRATOR",
      +            "MANAGE_CHANNELS",
      +            "MANAGE_GUILD",
      +            "ADD_REACTIONS",
      +            "VIEW_AUDIT_LOG",
      +            "PRIORITY_SPEAKER",
      +            "STREAM",
      +            "VIEW_CHANNEL",
      +            "SEND_MESSAGES",
      +            "SEND_TTS_MESSAGES",
      +            "MANAGE_MESSAGES",
      +            "EMBED_LINKS",
      +            "ATTACH_FILES",
      +            "READ_MESSAGE_HISTORY",
      +            "MENTION_EVERYONE",
      +            "USE_EXTERNAL_EMOJIS",
      +            "VIEW_GUILD_INSIGHTS",
      +            "CONNECT",
      +            "SPEAK",
      +            "MUTE_MEMBERS",
      +            "DEAFEN_MEMBERS",
      +            "MOVE_MEMBERS",
      +            "USE_VAD",
      +            "CHANGE_NICKNAME",
      +            "MANAGE_NICKNAMES",
      +            "MANAGE_ROLES",
      +            "MANAGE_WEBHOOKS",
      +            "MANAGE_EMOJIS_AND_STICKERS",
      +            "MANAGE_GUILD_EXPRESSIONS",
      +            "USE_APPLICATION_COMMANDS",
      +            "REQUEST_TO_SPEAK",
      +            "MANAGE_EVENTS",
      +            "MANAGE_THREADS",
      +            "CREATE_PUBLIC_THREADS",
      +            "CREATE_PRIVATE_THREADS",
      +            "USE_EXTERNAL_STICKERS",
      +            "SEND_MESSAGES_IN_THREADS",
      +            "USE_EMBEDDED_ACTIVITIES",
      +            "MODERATE_MEMBERS",
      +            "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      +            "USE_SOUNDBOARD",
      +            "CREATE_GUILD_EXPRESSIONS",
      +            "CREATE_EVENTS",
      +            "USE_EXTERNAL_SOUNDS",
      +            "SEND_VOICE_MESSAGES",
      +            "SET_VOICE_CHANNEL_STATUS",
      +            "SEND_POLLS",
      +            "USE_EXTERNAL_APPS",
      +            "PIN_MESSAGES",
      +            "BYPASS_SLOWMODE"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "permission_source_channel_id": {
      +        "anyOf": [
      +          {
      +            "description": "Discord channel ID (snowflake)",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "requested_permissions": {
      +        "items": {
      +          "enum": [
      +            "CREATE_INSTANT_INVITE",
      +            "KICK_MEMBERS",
      +            "BAN_MEMBERS",
      +            "ADMINISTRATOR",
      +            "MANAGE_CHANNELS",
      +            "MANAGE_GUILD",
      +            "ADD_REACTIONS",
      +            "VIEW_AUDIT_LOG",
      +            "PRIORITY_SPEAKER",
      +            "STREAM",
      +            "VIEW_CHANNEL",
      +            "SEND_MESSAGES",
      +            "SEND_TTS_MESSAGES",
      +            "MANAGE_MESSAGES",
      +            "EMBED_LINKS",
      +            "ATTACH_FILES",
      +            "READ_MESSAGE_HISTORY",
      +            "MENTION_EVERYONE",
      +            "USE_EXTERNAL_EMOJIS",
      +            "VIEW_GUILD_INSIGHTS",
      +            "CONNECT",
      +            "SPEAK",
      +            "MUTE_MEMBERS",
      +            "DEAFEN_MEMBERS",
      +            "MOVE_MEMBERS",
      +            "USE_VAD",
      +            "CHANGE_NICKNAME",
      +            "MANAGE_NICKNAMES",
      +            "MANAGE_ROLES",
      +            "MANAGE_WEBHOOKS",
      +            "MANAGE_EMOJIS_AND_STICKERS",
      +            "MANAGE_GUILD_EXPRESSIONS",
      +            "USE_APPLICATION_COMMANDS",
      +            "REQUEST_TO_SPEAK",
      +            "MANAGE_EVENTS",
      +            "MANAGE_THREADS",
      +            "CREATE_PUBLIC_THREADS",
      +            "CREATE_PRIVATE_THREADS",
      +            "USE_EXTERNAL_STICKERS",
      +            "SEND_MESSAGES_IN_THREADS",
      +            "USE_EMBEDDED_ACTIVITIES",
      +            "MODERATE_MEMBERS",
      +            "VIEW_CREATOR_MONETIZATION_ANALYTICS",
      +            "USE_SOUNDBOARD",
      +            "CREATE_GUILD_EXPRESSIONS",
      +            "CREATE_EVENTS",
      +            "USE_EXTERNAL_SOUNDS",
      +            "SEND_VOICE_MESSAGES",
      +            "SET_VOICE_CHANNEL_STATUS",
      +            "SEND_POLLS",
      +            "USE_EXTERNAL_APPS",
      +            "PIN_MESSAGES",
      +            "BYPASS_SLOWMODE"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "role_hierarchy_check": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "actor_top_role_id": {
      +            "anyOf": [
      +              {
      +                "description": "Discord role ID",
      +                "pattern": "^\\d{17,20}$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "allowed": {
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "not_applicable",
      +              "allowed",
      +              "denied",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "target_top_role_id": {
      +            "anyOf": [
      +              {
      +                "description": "Discord role ID",
      +                "pattern": "^\\d{17,20}$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "allowed",
      +          "actor_top_role_id",
      +          "target_top_role_id",
      +          "reason"
      +        ],
      +        "type": "object"
      +      },
      +      "subject_id": {
      +        "description": "Discord member or role ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "subject_timed_out": {
      +        "type": "boolean"
      +      },
      +      "subject_type": {
      +        "enum": [
      +          "member",
      +          "role"
      +        ],
      +        "type": "string"
      +      },
      +      "unknown_permission_bits": {
      +        "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "warnings": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "guild_id",
      +      "channel_id",
      +      "permission_source_channel_id",
      +      "subject_type",
      +      "subject_id",
      +      "action",
      +      "requested_permissions",
      +      "allowed",
      +      "base_permissions",
      +      "effective_permissions",
      +      "unknown_permission_bits",
      +      "missing_permissions",
      +      "ineffective_permissions",
      +      "implicit_denies",
      +      "administrator",
      +      "guild_owner",
      +      "subject_timed_out",
      +      "applied_role_ids",
      +      "decision_trace",
      +      "role_hierarchy_check",
      +      "warnings",
      +      "confidence"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observedv0.22.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/idempotent/destructive=false, but the description adds real value beyond them: the partial-result contract that `allowed:null` means Discord lacked evidence for a safe conclusion, and warnings/confidence fields. Listing the full return key set is partly redundant with the existing output schema, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Labeled sections (Purpose / When to use / When NOT to use / Returns) make it front-loaded and scannable with no filler prose. The Returns block duplicates the supplied output schema, which is the one piece that does not fully earn its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 parameters, an output schema, and full annotation coverage, the definition supplies the decision-critical context an agent needs before calling. Minor gaps remain around how the decision_trace and confidence values should influence follow-up actions, but nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 8 parameters, enums, and mutual exclusions are already documented in the schema; baseline 3 applies. The description restates the member-or-role exclusivity but adds no channel/target scoping rules or usage notes beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Explain) plus resource (effective Discord permissions) and bounds the scope to exactly one guild member or one role. An agent can distinguish it from siblings like permissions_member_access_report or permissions_audit_channel without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives two concrete when-to-use triggers (verify before a write, diagnose allow/deny/inconclusive) and two explicit exclusions (no role/overwrite mutation, do not treat partial results as write permission). The named alternative behavior is replaced by naming the condition, which is sufficient here.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools