Skip to main content
Glama
discord-mcp

discord-mcp

by wjrosa

permissions_explain

Read-onlyIdempotent

Computes a member's, role's, or bot's effective permissions in a Discord channel and shows which role or overwrite step decides view_channel or send_messages, explaining why access is denied.

Instructions

Effective permissions of a member (or of a role alone, or "me" for the bot) in a channel, computed like Discord does (base roles -> @everyone overwrite -> role overwrites -> member overwrite), with the step that decided view_channel/send_messages. Answers 'why can't X see/post in #Y'.

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

Input Schema

NameRequiredDescriptionDefault
botNo
whoYes
guildNo
channelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the risk profile is covered. The description adds real behavioral value on top: it discloses the exact computation chain and that the response identifies the deciding step for view_channel/send_messages, which an agent would otherwise have to guess.

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?

The core purpose and algorithm are front-loaded in one dense sentence, with the use case immediately after. The nested parentheticals are slightly awkward to parse but every clause carries information; nothing is redundant filler.

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

Completeness3/5

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

With a read-only diagnostic tool, no output schema, and 0% parameter coverage, the description does well on purpose and algorithm but leaves gaps: the return shape is only hinted at, and the roles of `guild` and `bot` (e.g. whether guild is required for role-only lookups) are unstated. Adequate, but an agent could still mis-supply the optional params.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden. It meaningfully expands the `who` parameter (member, role-alone, or literal 'me' for the bot) and implies `channel` is the target. However, the `guild` and `bot` parameters are never addressed, leaving two of four parameters undocumented in both schema and description.

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?

The description names a specific verb and resource and states scope precisely: it computes the *effective* permissions of a member/role in a channel. It also pins down the exact algorithm order (base roles -> @everyone overwrite -> role overwrites -> member overwrite), which separates it from mutation siblings like channel_permissions_set and channel_permissions_delete at a glance.

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

Usage Guidelines4/5

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

The final sentence 'Answers why can't X see/post in #Y' gives a clear diagnostic use case, and the parenthetical clarifies acceptable inputs ('me' for the bot, role-alone lookups). It stops short of explicitly naming the alternative (e.g. permissions_list) or stating when not to use it, but the intended context is unambiguous.

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