Skip to main content
Glama

Set channel permissions

set_channel_permissions
Idempotent

Use this when the user wants to allow, deny or reset Discord permissions for one role in one channel or category. A card that allows a management or moderation permission (ManageRoles, ManageChannels, ManageMessages, ManageWebhooks, MentionEveryone…) must then be confirmed on aiguild.me. Do not use for a role's server-wide permissions; use set_role_permissions. Adds the change to the pending card for this server; nothing changes on Discord until apply_card.

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": {
      "guild_id": "<guild_id>",
      "channel": "<channel>",
      "role": "<role>"
    },
    "name": "set_channel_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
denyNoDiscord permission names to deny.
roleYesThe role name, or "@everyone".
allowNoDiscord permission names to allow, e.g. SendMessages, ViewChannel.
resetNoDiscord permission names to reset to the role's default.
channelYesThe channel or category name.
guild_idYesDiscord server ID, as returned by list_my_servers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses that changes are only staged on a pending card, that nothing changes on Discord until apply_card, and that management/moderation allows require confirmation on aiguild.me. These are real behavioral facts not encoded in readOnlyHint/destructiveHint/idempotentHint. The only gap is that it does not say what happens when a permission appears in more than one of allow/deny/reset, or how invalid permission names are handled.

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?

Four sentences, front-loaded with the use case before the constraints, and no filler. The warning about management permissions is long but warranted; minor density cost from stacking three distinct ideas (use case, confirmation, staging) into back-to-back sentences.

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?

For a 6-parameter mutation tool with no output schema, the definition covers scope, the sibling boundary, the confirmation requirement, and the staging/apply workflow an agent must know to avoid claiming success prematurely. What remains uncovered is edge-case behavior (conflicting permission lists, invalid names, max-30 handling) that an agent might need for error recovery.

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 description coverage is 100%, so the schema already defines guild_id, channel, role, allow, deny, and reset. The description adds framing for the three lists as alternative modes and reinforces that channel may be a category, but offers no format examples, size limits, or precedence rules beyond the schema. Baseline 3 is appropriate.

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 set (allow, deny, reset), the exact resource (Discord permissions), and the precise scope (one role in one channel or category). It explicitly contrasts with set_role_permissions, so an agent can distinguish it from the nearest sibling without reading either 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 when to use it ('when the user wants to allow, deny or reset Discord permissions for one role in one channel or category') and names a hard exclusion with the correct alternative ('Do not use for a role's server-wide permissions; use set_role_permissions'). The apply_card routing sentence further tells the agent the workflow this call belongs to.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources