Skip to main content
Glama
discord-mcp

discord-mcp

channels_modify

Idempotent

Update an existing Discord channel's settings by passing only the fields to change, such as name, topic, slowmode, category, NSFW status, or forum tags.

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.

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.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (destructiveHint=false, idempotentHint=true), yet the description goes well beyond them: it documents the lock_permissions PATCH-and-verify flow, the required permissions, the refusal on incomplete tag state, the readback verification, and critically that a verification failure means PATCH already succeeded (patch_succeeded:true) and must not be blindly retried. That is exactly the kind of non-obvious behavior an agent needs.

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 bolded section headers (Purpose, When to use, When NOT to use, Permission sync, Forum tags, Emoji, Returns) make it front-loaded and scannable, and nearly every sentence carries non-redundant operational detail. It is on the long side for a single tool, but the density justifies most of the length.

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-parameter mutation with a complex tag/permission-sync surface, the description covers the destructive edge cases, verification semantics, and the return shape. The Returns line plus the existence of an output schema means return values need not be re-explained, and nothing an agent needs to call this safely appears missing.

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?

With only 38% schema coverage across 24 params, the description carries real burden and does explain the highest-risk ones (lock_permissions, available_tags, remove_available_tag_ids, applied_tags, emoji_id vs emoji_name). It also smartly delegates the long tail via "Field applicability mirrors `channels_create_guild_channel`", though many scalar params (bitrate, rtc_region, default_sort_order, flags, etc.) remain undocumented in either place.

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+resource ("Update an existing channel's settings") and immediately distinguishes scope from siblings, naming `channels_modify_permissions` and `channels_delete` as the tools for adjacent operations. An agent can select this tool 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?

Explicit "When to use" and "When NOT to use" sections enumerate concrete triggers (rename, move, toggle nsfw, slowmode, retag) and route the two common confusions (permissions, deletion) to named alternatives. This is textbook when/when-not/alternatives guidance.

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