Skip to main content
Glama
discord-mcp

discord-mcp

channels_modify_permissions

Idempotent

Create or replace a role or user permission overwrite on a Discord channel to allow, deny, or restrict access and moderation actions.

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}.

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>",
      "overwrite_id": "<overwrite_id>",
      "type": "<type>"
    },
    "name": "channels_modify_permissions"
  }
}

Input 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false; the description reinforces this with 'create or replace', which explains the idempotency without contradicting it, and clarifies the allow/deny bitfield semantics. It stops short of disclosing permission requirements, rate limits, or the audit-log side effect (left to the schema's audit_reason field).

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?

The Purpose / When / When NOT / params / Returns structure is front-loaded and scannable, with the routing rule easy to find. There is minor waste: the 'Returns' line repeats the output schema, and the type/bitfield note duplicates schema text.

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 six-parameter mutation with an output schema, the description covers intent, the alternative tool, and the key enum semantics, so an agent can call it correctly. It could say a bit more about the audit_reason header and permission prerequisites, but nothing essential is missing.

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 100%, so the schema already documents all six parameters including the type enum and bitfield strings. The description's '0 = role overwrite, 1 = member overwrite' and 'allow/deny are stringified bitfields' largely restate what the schema says, adding little new meaning; the baseline 3 applies.

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 opens with a specific verb pair and resource: 'Create or replace a permission overwrite for a role or user on a channel.' It names the exact scope (role or user, on a channel) and the sibling it is not (channels_delete_permissions), so an agent can distinguish it without opening the schema.

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 an explicit 'When to use' with concrete scenarios (restrict a channel to a role, let a moderator manage messages) and an explicit 'When NOT to use' routing removal to `channels_delete_permissions`. Both the selection and the exclusion condition are stated, leaving nothing to inference.

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