Skip to main content
Glama

discord_lock_channel_permissions

Idempotent

Sync a channel's permission overwrites to exactly match its parent category, replacing custom settings so the channel inherits the category's access rules.

Instructions

Reset a channel's permission overwrites to exactly match its parent category (Discord's 'sync permissions'). The channel must be inside a category. Requires the Manage Channels and Manage Roles permissions, and View Channel on the category: the tool refuses a category the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation.

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": "discord_lock_channel_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
channel_idYesID (snowflake) of the channel to sync with its parent category.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
  3. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the channel to sync with its parent category."
  4. Addedv1.5.0

TDQS

A4.3/5.0
Behavior3/5

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

The description adds substantial context beyond the annotations: required permissions, the category-must-be-visible refusal, and the consequential side effect that Discord may collapse overwrites into a single @everyone View Channel deny. That side effect is worth flagging against destructiveHint=false, but it is not a direct contradiction since the tool restores the parent's state rather than deleting data; idempotency is already covered by idempotentHint=true.

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?

Three tight sentences, front-loaded with the operation and its target state, followed by preconditions and the failure caveat. No filler or repeated information.

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 one-parameter mutation tool with no output schema, the definition covers purpose, preconditions, permission requirements, a specific failure mode, and the fact that a confirmation is returned. Nothing material for correct invocation is omitted.

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 100% and the single parameter is documented as a snowflake ID, so the schema already carries most of the load. The description still adds real semantic meaning by constraining where channel_id must point (a channel inside a category) and by describing what state that channel's overwrites will be moved to.

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?

States a specific verb and resource ('Reset a channel's permission overwrites') plus the exact target state ('to exactly match its parent category'), and names the Discord-native concept ('sync permissions'), which cleanly separates it from siblings like discord_reset_channel_permissions or discord_copy_permissions. An agent can identify the operation without opening any schema.

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

Usage Guidelines4/5

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

Gives clear preconditions for use: the channel must be inside a category, and the caller needs Manage Channels, Manage Roles, and View Channel on the category. It does not explicitly route the agent away from sibling tools (reset vs. copy vs. get permissions), so it stops short of full when/when-not 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