Skip to main content
Glama

discord_copy_permissions

DestructiveIdempotent

Copy a source Discord channel's permission overwrites to a target channel, replacing the target's existing overwrites to align access controls.

Instructions

Replace the target channel's permission overwrites with a copy of the source channel's. The target's existing overwrites are overwritten. Requires the Manage Channels and Manage Roles permissions, and View Channel on the source: the tool refuses a source the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation. To create a new channel with the same overwrites, use discord_clone_channel; to remove them all, use discord_reset_channel_permissions.

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": {
      "source_channel_id": "<source_channel_id>",
      "target_channel_id": "<target_channel_id>"
    },
    "name": "discord_copy_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional reason recorded in the server audit log.
source_channel_idYesID (snowflake) of the channel to copy overwrites from.
target_channel_idYesID (snowflake) of the channel whose overwrites will be replaced.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / source_channel_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / target_channel_id / pattern
      Added value: +"^\\d{17,20}$"
  3. Changed3 schema fields changedv1.6.0
    • addedInput schema / properties / reason / description
      Added value: +"Optional reason recorded in the server audit log."
    • addedInput schema / properties / source_channel_id / description
      Added value: +"ID (snowflake) of the channel to copy overwrites from."
    • addedInput schema / properties / target_channel_id / description
      Added value: +"ID (snowflake) of the channel whose overwrites will be replaced."
  4. Addedv1.5.0
  5. Removedv1.0.0
  6. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint and idempotentHint annotations, the description explains that existing target overwrites are overwritten, lists the required Discord permissions, and discloses a failure mode where an unviewable source may be replaced with a single @everyone deny. It also says the tool returns a confirmation.

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 front-loaded with the core action, followed by permissions and failure behavior, then alternatives. Every sentence earns its place, and there is no repetition of the title or name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still notes that a confirmation is returned. It covers the mutation, permissions, refusal behavior, and related alternatives, which is enough for an agent to invoke this destructive tool correctly.

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%, and the schema already documents source_channel_id, target_channel_id, and reason with descriptions and patterns. The description reinforces the source/target roles and the source visibility constraint but adds no syntax or format detail 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 a specific verb and resource: 'Replace the target channel's permission overwrites with a copy of the source channel's.' It makes the direction of copy and mutation explicit, and names sibling tools to show what it is not.

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 gives explicit alternatives with conditions: use discord_clone_channel to create a new channel with the same overwrites, and discord_reset_channel_permissions to remove them all. Required permissions and the condition for refusing a source are also stated.

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