Skip to main content
Glama
discord-mcp

discord-mcp

channels_modify

Idempotent

Update an existing Discord channel's settings—rename it, move it under a category, toggle NSFW, change slowmode, retag a forum, or sync category permissions—by passing only the fields to change.

Instructions

Purpose: Update an existing channel's settings. Pass only the fields you want to change.

When to use: - Rename, move under a category, toggle nsfw, change slowmode, retag a forum channel.

When NOT to use: - Permission overwrites for a single role/user → use channels_modify_permissions. - Deleting → use channels_delete.

Field applicability mirrors channels_create_guild_channel. Discord ignores fields that do not apply to the channel type.

Permission sync: Set lock_permissions:true with an explicit category parent_id (the current parent for Sync Now, or a new parent to move and sync). This replaces every channel overwrite with the category set, including an empty set, using one PATCH as discord.js does. Requires VIEW_CHANNEL, MANAGE_CHANNELS and MANAGE_ROLES; the conservative preflight checks these on both channel and category. Do not also pass permission_overwrites. A false or omitted flag preserves ordinary modification behavior.

Permission verification: Sync reads both channel and category after PATCH. permissions_verified:true means their parent and complete overwrite sets matched the copied category snapshot. A concurrent category change or unavailable readback returns a non-retriable verification error with patch_succeeded:true; read both channels before retrying.

Forum tags: Read channels_get first. available_tags is the complete desired set: keep IDs for existing tags; omit id only for additions. Every omitted existing ID must be listed in remove_available_tag_ids. Omitted emoji/moderated fields are preserved for existing IDs. The tool reads the current set before PATCH and refuses an incomplete state.

Emoji: emoji_id is a guild emoji ID; application emoji compatibility is not guaranteed. To reuse application emoji artwork, upload it with emojis_create and use the resulting guild emoji ID. Set either emoji_id or emoji_name; set both to null to clear.

Verification: Tag changes are read back after PATCH. After editing forum tags, read existing posts with channels_get or the active/archived thread lists to confirm their applied_tags still reference the retained IDs. Verification failure means PATCH succeeded: read current state before retrying.

Returns: {id, name, type, parent_id, permission_overwrites?, permissions_verified?, available_tags?, applied_tags?, tags_verified?}. tags_verified:true confirms this channel's tag readback only. name is null for DM / unnamed group DM channels.

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

Input Schema

NameRequiredDescriptionDefault
nameNoNew channel name
nsfwNo
typeNoConvert text↔announcement only (Discord limitation)
flagsNoChannel flags bitfield
topicNo
bitrateNo
positionNo
parent_idNo
channel_idYesChannel to modify
rtc_regionNo
user_limitNo
applied_tagsNoComplete desired tag IDs on a forum/media post. [] explicitly removes all post tags; omit to preserve.
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
available_tagsNoComplete desired tag set. Keep existing IDs; omit id for additions. Read channels_get first.
lock_permissionsNoCopy the complete category overwrite set and verify it. True requires explicit non-null parent_id and excludes permission_overwrites.
default_sort_orderNo
video_quality_modeNo
rate_limit_per_userNo
default_forum_layoutNo
permission_overwritesNo
default_reaction_emojiNo
remove_available_tag_idsNoExplicit IDs to delete from the current set; requires available_tags with those IDs omitted.
default_auto_archive_durationNo
default_thread_rate_limit_per_userNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.32.0
    • addedInput schema / properties / lock_permissions
      Added value: +{
      +  "description": "Copy the complete category overwrite set and verify it. True requires explicit non-null parent_id and excludes permission_overwrites.",
      +  "type": "boolean"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "applied_tags": {
      -        "description": "Tag IDs applied to a forum/media post, when returned by Discord",
      -        "items": {
      -          "pattern": "^\\d{17,20}$",
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "available_tags": {
      -        "description": "Complete forum/media tags, including IDs, names, moderation and emoji fields, when returned by Discord",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "emoji_id": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "emoji_name": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "id": {
      -              "pattern": "^\\d{17,20}$",
      -              "type": "string"
      -            },
      -            "moderated": {
      -              "type": "boolean"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "moderated",
      -            "emoji_id",
      -            "emoji_name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "id": {
      -        "description": "Discord channel ID (snowflake)",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "parent_id": {
      -        "anyOf": [
      -          {
      -            "description": "Discord channel ID (snowflake)",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "tags_verified": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "type",
      -      "parent_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "applied_tags": {
      +        "description": "Tag IDs applied to a forum/media post, when returned by Discord",
      +        "items": {
      +          "pattern": "^\\d{17,20}$",
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "available_tags": {
      +        "description": "Complete forum/media tags, including IDs, names, moderation and emoji fields, when returned by Discord",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "emoji_id": {
      +              "anyOf": [
      +                {
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "emoji_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "id": {
      +              "pattern": "^\\d{17,20}$",
      +              "type": "string"
      +            },
      +            "moderated": {
      +              "type": "boolean"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "moderated",
      +            "emoji_id",
      +            "emoji_name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Discord channel ID (snowflake)",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "parent_id": {
      +        "anyOf": [
      +          {
      +            "description": "Discord channel ID (snowflake)",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "permission_overwrites": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "allow": {
      +              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +              "pattern": "^\\d+$",
      +              "type": "string"
      +            },
      +            "deny": {
      +              "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
      +              "pattern": "^\\d+$",
      +              "type": "string"
      +            },
      +            "id": {
      +              "pattern": "^\\d{17,20}$",
      +              "type": "string"
      +            },
      +            "type": {
      +              "anyOf": [
      +                {
      +                  "const": 0,
      +                  "type": "number"
      +                },
      +                {
      +                  "const": 1,
      +                  "type": "number"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "type",
      +            "allow",
      +            "deny"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "permissions_verified": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "tags_verified": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "type",
      +      "parent_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed13 schema fields changedv0.28.0
    • addedInput schema / properties / applied_tags
      Added value: +{
      +  "description": "Complete desired tag IDs on a forum/media post. [] explicitly removes all post tags; omit to preserve.",
      +  "items": {
      +    "pattern": "^\\d{17,20}$",
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • addedInput schema / properties / available_tags / description
      Added value: +"Complete desired tag set. Keep existing IDs; omit id for additions. Read channels_get first."
    • changedInput schema / properties / available_tags / items / properties / emoji_id / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^\\d{17,20}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / available_tags / items / properties / emoji_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / available_tags / items / properties / emoji_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / available_tags / items / properties / id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / available_tags / items / properties / name / maxLength
      Added value: +20
    • addedInput schema / properties / available_tags / maxItems
      Added value: +20
    • changedInput schema / properties / default_reaction_emoji / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "emoji_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "emoji_name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "emoji_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "emoji_name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / remove_available_tag_ids
      Added value: +{
      +  "description": "Explicit IDs to delete from the current set; requires available_tags with those IDs omitted.",
      +  "items": {
      +    "pattern": "^\\d{17,20}$",
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • removedInput schema / properties / rtc_region / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / rtc_region / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "id": {
      -        "description": "Discord channel ID (snowflake)",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "parent_id": {
      -        "anyOf": [
      -          {
      -            "description": "Discord channel ID (snowflake)",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "type": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "type",
      -      "parent_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "applied_tags": {
      +        "description": "Tag IDs applied to a forum/media post, when returned by Discord",
      +        "items": {
      +          "pattern": "^\\d{17,20}$",
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "available_tags": {
      +        "description": "Complete forum/media tags, including IDs, names, moderation and emoji fields, when returned by Discord",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "emoji_id": {
      +              "anyOf": [
      +                {
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "emoji_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "id": {
      +              "pattern": "^\\d{17,20}$",
      +              "type": "string"
      +            },
      +            "moderated": {
      +              "type": "boolean"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "moderated",
      +            "emoji_id",
      +            "emoji_name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Discord channel ID (snowflake)",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "parent_id": {
      +        "anyOf": [
      +          {
      +            "description": "Discord channel ID (snowflake)",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "tags_verified": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "type",
      +      "parent_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observedv0.22.0

TDQS

A4.7/5.0
Behavior4/5

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

Goes far beyond the annotations, disclosing required permissions (VIEW_CHANNEL, MANAGE_CHANNELS, MANAGE_ROLES), exactly what lock_permissions destroys (all overwrites replaced, including with an empty set), preflight checks on channel and category, and a non-retriable verification failure mode with patch_succeeded:true. The only reason this is not a 5 is that some standard fields (bitrate, user_limit, rtc_region, video_quality_mode, flags) get no behavioral treatment at all.

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?

Despite its length, it is front-loaded with Purpose and When/When-NOT before any detail, and uses labeled headers (Permission sync, Forum tags, Emoji, Verification) that let an agent jump to the relevant paragraph. The length is justified by the 24-parameter surface and the stateful overwrite/tag semantics that cannot be inferred.

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?

For a 24-param mutation with openWorldHint and async verification/failure modes, the description covers the risky branches end to end: sync, tag readback, retry-after-failure guidance, and which IDs indicate what. Although an output schema exists, the Returns line clarifies the non-obvious flags (permissions_verified, tags_verified) that the schema alone would not explain.

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?

Schema coverage is only 38%, so the description must compensate and largely does: it explains that available_tags is the complete desired set with ID retention rules, that remove_available_tag_ids is mandatory for deletions, why channels_get must be read first, the applied_tags empty-array semantics, and the emoji_id/emoji_name mutual-exclusion and clearing rules. Coverage gap remains for the ~15 undocumented Discord-native fields, so not a 5.

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?

Opens with a specific verb+resource ("Update an existing channel's settings") and immediately scopes behavior with "Pass only the fields you want to change." It names the exact siblings it is not (channels_modify_permissions for overwrites, channels_delete for deletion), so an agent can route correctly without opening another 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?

Has explicit "When to use" and "When NOT to use" sections with the alternative tool named for each exclusion (permission overwrites, deletion). The field-applicability note pointing to channels_create_guild_channel and the warning not to combine lock_permissions with permission_overwrites give additional selection rules.

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