Skip to main content
Glama
discord-admin-mcp

discord-admin-mcp

by pedroaop

set_channel_permission

Sets a Discord channel permission override to allow or deny specific permissions for a role or member using allow and deny bitfields.

Instructions

Define override de permissão no canal. target_type: 0=cargo, 1=membro. allow/deny são bitfields.

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_id": "<channel_id>",
      "target_id": "<target_id>",
      "target_type": "<target_type>"
    },
    "name": "set_channel_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
denyNo0
allowNo0
reasonNo
target_idYes
channel_idYes
target_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It does not say what permissions are required (e.g., manage-channel rights), whether an existing override is replaced/merged, whether the operation is reversible, or what is returned. For a mutation tool this leaves significant behavioral gaps.

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?

Three short, front-loaded sentences with no padding; the core action is stated first, then the key parameter semantics. Encoding artifacts ('permissão') and a non-English description slightly reduce readability for an English-tooled agent.

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?

For a 6-parameter mutation tool with no annotations and no output schema, the description covers the most confusing parameter (target_type) and the bitfield nature of allow/deny. It still omits permission prerequisites, overwrite behavior, and any detail on the remaining parameters.

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 6 parameters, so the description is the only semantic source. It usefully decodes target_type (0=cargo/role, 1=membro/member) and explains that allow/deny are bitfields, but leaves channel_id, target_id, and reason unexplained and gives no bitfield format examples.

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

Purpose4/5

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

States a specific verb and resource ('Define override de permissão no canal' = set a channel permission override), which is distinct from edit_role/add_role siblings. It never explicitly contrasts itself with those siblings, keeping it at 4 rather than 5.

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

Usage Guidelines3/5

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

The channel-override framing implies when to use it (setting per-channel allow/deny for a role or member), but it gives no explicit when-not guidance or alternatives such as edit_role or add_role. Usage must be inferred.

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