Skip to main content
Glama
cappyeo

discord-mcp

channels_modify_permissions

Idempotent

Sets or replaces a role or user permission overwrite on a Discord channel, specifying allowed and denied permissions for that target.

Instructions

Purpose: Create or replace a permission overwrite for a role or user on a channel.

When to use:

  • Restrict a channel to a specific role; allow a moderator to manage messages.

When NOT to use:

  • Removing the overwrite entirely → use channels_delete_permissions.

type: 0 = role overwrite, 1 = member overwrite. allow/deny are stringified bitfields.

Returns: {updated, channel_id, overwrite_id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
denyNoPermission bitfield to deny (string of integer bits)
typeYes0 = role, 1 = member
allowNoPermission bitfield to allow (string of integer bits)
channel_idYesChannel whose overwrite is being set
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
overwrite_idYesRole ID or user ID receiving the overwrite

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds useful context by clarifying that the tool replaces existing overwrites, explains the `type` encoding, and discloses the return shape `{updated, channel_id, overwrite_id}`. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with bold labels and bullet points, presenting the purpose, usage guidance, parameter notes, and return value in a compact format. No redundant sentences.

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?

Given the tool's moderate complexity, the description covers purpose, usage guidelines, parameter semantics, and returns. It also references the sibling delete tool for exclusions. With an output schema present, it does not need to detail return values further; the description is sufficient for an agent to select and invoke the tool.

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?

The input schema covers all 6 parameters with descriptions, so the baseline is 3. The description adds a concise explanation of `type` (0=role, 1=member) and that `allow`/`deny` are stringified bitfields, but this largely mirrors the schema descriptions. It provides minimal additional semantic value beyond 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?

The description states 'Create or replace a permission overwrite for a role or user on a channel' with a specific verb and resource, and clearly distinguishes from `channels_delete_permissions`. It also specifies the scope (role or user) and the action (create/replace).

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

Usage Guidelines5/5

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

It provides explicit 'When to use' examples like restricting a channel to a role or allowing moderators to manage messages, and 'When NOT to use' with a named alternative (`channels_delete_permissions`) for removing overwrites entirely.

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/cappyeo/discord-mcp'

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