Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Unlock channel

unlock_channel

Reverses a channel lock by restoring the permissions the lock changed while leaving earlier denials intact; requests confirmation when no lock is on record.

Instructions

Reverse lock_channel: lift the denials the lock added and put back what it took off, leaving alone anything that was denied before the lock. A channel that was read-only before it was locked stays read-only. On a channel no lock is on record for, it would remove everyone's denial on sending, which may be there on purpose, so that needs confirming: the first call changes nothing and returns a preview and a confirm_token, and repeating the call with the token makes the change.

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

Input Schema

NameRequiredDescriptionDefault
guildNoGuild (server) name or ID. Omit to use the default guild.
reasonNoThe reason recorded in the server's audit log.
channelYesChannel name or ID.
confirm_tokenNoThe token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.2
    • addedInput schema / properties / reason / description
      Added value: +"The reason recorded in the server's audit log."
  2. Changed2 schema fields changedv1.4.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / confirm_token
      Added value: +{
      +  "description": "The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv1.0.2

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnlyHint=false / destructiveHint=false annotations, the description discloses the selective restore semantics and the preview-then-confirm_token flow, including that the first call is a no-op. It does not state required permissions or what the confirming call returns, and it hints at a potentially broad effect (removing everyone's send denial) that the non-destructive annotation alone would not convey.

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 inverse relationship is front-loaded and every clause carries information: what is restored, what is preserved, and the confirmation rule. The final sentence is long and comma-spliced, which costs a little readability but adds no filler.

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?

With no output schema, the description still covers the shape of the preview response (preview plus confirm_token) and the guarded-write behavior, which is the key thing an agent needs. Remaining gaps, such as permission requirements and the return of the confirming call, are minor for a single-resource reversal tool.

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%, so the baseline is 3, but the description goes further by explaining the lifecycle of confirm_token: that the first call returns a preview and token, that repeating the call with the token commits the change, and that the call may surface a dialog to the user. That is real meaning added on top of the field's own description.

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?

"Reverse lock_channel: lift the denials the lock added and put back what it took off" names the exact inverse operation and explicitly anchors itself to a named sibling, so an agent can distinguish it from lock_channel and the set/clear permission tools 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 Guidelines5/5

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

It states the trigger (undoing a lock) and the exception (channels with no lock on record), and it explains the required two-step confirmation path for that exception. It also gives an explicit scoping rule for what stays untouched (pre-existing denials, pre-lock read-only state), which leaves no ambiguity about when this tool is the right choice.

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