Skip to main content
Glama
GuildControl: Discord MCP

GuildControl: Discord MCP

Explain Discord principal permissions

explain_principal_permissions
Read-onlyIdempotent

Explains effective Discord permissions for the connector bot, a member, or a role and resolves channel, hierarchy, bypass, and timeout rules; returns unknown when evidence is partial.

Instructions

Explain effective Discord permissions for the connector bot, one exact member, or one exact role in a permitted guild. Supports named permission checks, channel actions, and hierarchy actions with exact targets. Applies owner and Administrator bypasses, channel overwrite order, implicit dependencies, timeout restrictions, role hierarchy, thread inheritance, and exact private-thread membership. Partial Discord evidence produces an unknown decision instead of an optimistic answer.

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": {
      "guildId": "<guildId>",
      "subjectKind": "<subjectKind>"
    },
    "name": "explain_principal_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNo
guildIdYes
channelIdNo
subjectIdNo
subjectKindYes
targetRoleIdNo
targetUserIdNo
requestedPermissionsNo

Output Schema

NameRequiredDescriptionDefault
statusYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.6.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/non-destructive annotations by enumerating the resolution model that will be applied: owner and Administrator bypasses, channel overwrite order, implicit dependencies, timeout restrictions, role hierarchy, thread inheritance, and private-thread membership. It also discloses the conservative failure mode ('partial evidence produces an unknown decision instead of an optimistic answer'), which is exactly the kind of behavior an agent cannot infer from annotations.

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?

Purpose and scope are front-loaded in the first clause, followed by capability and then behavioral guarantees. The enumerated rule list is long but each item is a distinct resolution rule that carries information, so little is wasteful.

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?

For a complex permission-resolution tool the behavioral semantics are thorough, and an output schema exists so return values need not be described. The remaining gap is input-side: with no schema descriptions and 8 parameters, the description should have clarified how the modes are selected via subjectKind, action, and targets.

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 0% across 8 parameters, so the description must carry the burden, and it only partly does. It maps the mode families (named permission checks, channel actions, hierarchy targets) onto the fields implicitly but never explains required guildId/subjectKind, the action vs. requestedPermissions distinction, or the enum meanings, leaving the caller to read the schema.

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 and resource ('Explain effective Discord permissions') plus the exact subject scope: connector bot, one exact member, or one exact role within a permitted guild. That scope immediately separates it from broader audit-style siblings without needing to name them.

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?

Names the three operating modes the caller can pick (named permission checks, channel actions, hierarchy actions with exact targets), which tells an agent how to frame a request. It stops short of explicit exclusions or naming a sibling like explain_channel_access as the alternative, so it is clear context without routing rules.

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