Skip to main content
Glama
Oratorian

Discord MCP Server

by Oratorian

Set Channel Permissions

discord_set_channel_permissions
Idempotent

Override channel permissions for roles or members by specifying allowed and denied permissions.

Instructions

Set permission overrides for a role or member on a channel.

Common permission names:

  • View: ViewChannel

  • Messages: SendMessages, ReadMessageHistory, ManageMessages, EmbedLinks, AttachFiles, AddReactions

  • Voice: Connect, Speak, Stream, MuteMembers, DeafenMembers, MoveMembers

  • Threads: CreatePublicThreads, CreatePrivateThreads, SendMessagesInThreads

  • Management: ManageChannels, ManageRoles, ManageWebhooks

Args:

  • channel_id (string): Discord channel ID

  • target_id (string): Role or User ID to set permissions for

  • target_type ('role' | 'member'): Whether target is a role or member

  • allow (string[], optional): Permissions to allow (e.g., ['ViewChannel', 'SendMessages'])

  • deny (string[], optional): Permissions to deny (e.g., ['SendMessages'])

Returns: Confirmation of permission changes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
denyNoPermissions to deny (e.g., ['SendMessages', 'AddReactions'])
allowNoPermissions to allow (e.g., ['ViewChannel', 'SendMessages', 'ReadMessageHistory'])
target_idYesRole or User ID to set permissions for
channel_idYesDiscord channel ID (snowflake)
target_typeYesWhether target is a role or member
Behavior4/5

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

Annotations already indicate idempotent, non-destructive, read-write behavior. The description adds value by organizing permission names and implying that overrides are set, which aligns with annotations. However, it does not clarify whether existing overrides are replaced or merged, nor mention rate limits or required permissions.

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?

Description is well-structured with clear sections (purpose, permission names, args, returns). The permission name list is lengthy but necessary. The overall length is justified given the complexity, though some redundancy exists between the args list and the schema.

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?

The description covers purpose and arguments well but provides only vague return information ('Confirmation of permission changes'). No output schema exists, so more detail on the return format would be helpful. It also lacks clarification on behavior when overrides already exist (overwrite vs merge), though idempotent hint suggests replacement.

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?

Input schema covers all parameters with descriptions (100% coverage). The description adds significant value by listing common permission names organized by category (View, Messages, Voice, etc.), which helps the agent construct valid 'allow' and 'deny' arrays beyond the schema's brief descriptions.

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 uses a specific verb ('Set') and resource ('permission overrides for a role or member on a channel'), clearly distinguishing it from sibling tools like 'discord_remove_channel_permissions' or 'discord_sync_channel_permissions'.

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?

While the description lists common permission names to guide input, it does not explicitly state when to use this tool versus alternatives (e.g., 'use discord_sync_channel_permissions to copy permissions from another channel'). No exclusions or context on prerequisites are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Oratorian/discord-node-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server