Skip to main content
Glama
discord-mcp

discord-mcp

by wjrosa

channel_permissions_set

Idempotent

Set a channel or category permission overwrite for a role, member, or @everyone, merging allow/deny/neutral by default or replacing it exactly.

Instructions

Set a permission overwrite on a channel/category for a role or member (target = name/id/@everyone). By default MERGES with the existing overwrite: perms in allow become allowed, in deny denied, in neutral reset; replace=True writes exactly allow/deny. Permission names: view_channel, send_messages, read_message_history, manage_messages, attach_files, add_reactions, connect, speak, manage_threads, send_messages_in_threads, create_public_threads, ... (see permissions_list).

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>",
      "target": "<target>"
    },
    "name": "channel_permissions_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNo
denyNo
allowNo
guildNo
reasonNo
targetYes
channelYes
neutralNo
replaceNo
target_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare mutating, idempotent, non-destructive, open-world. The description adds real value beyond that: the merge-vs-replace semantics (allow→allowed, deny→denied, neutral→reset) and that replace=True overwrites exactly. It does not cover required bot permission or audit-log/reason behavior.

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?

Front-loaded with the core action and target format, then merge semantics, then permission names. Slightly dense and the trailing '... (see permissions_list)' is a bit untidy but each clause carries information.

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 10-parameter mutation tool with no output schema and zero schema descriptions, the description covers the most consequential fields (allow/deny/neutral/replace/target) but omits meaning for target_type, guild, bot, and reason, so an agent could still misuse overloads.

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 coverage is 0%, so the description must carry parameter meaning and does so for target (name/id/@everyone), allow/deny/neutral semantics, and replace. But it leaves target_type, guild, bot, and reason unexplained, and truncates the permission name list with '...' rather than enumerating or pointing clearly.

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 (Set) and resource (permission overwrite on a channel/category for role or member), and clarifies the target accepts name/id/@everyone. This is distinguishable from siblings like channel_permissions_delete and permissions_list.

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?

Explains how the default merge mode works and what replace=True does, and points to permissions_list for names. However, it never states when to use this vs channel_permissions_delete or permissions_explain, and no prerequisites (e.g., required Discord permissions) are given.

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