Skip to main content
Glama

discord_set_role_permission

Idempotent

Set per-channel permission overwrites for a role, allowing or denying specific permissions. Merges with existing overwrite without resetting it.

Instructions

Add or update a per-channel permission overwrite for a role, allowing and/or denying specific permissions. Merges with the role's existing overwrite (does not reset it). Requires the Manage Roles permission. Use discord_set_member_permission to target a single member instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
denyNoPermission flag names to deny, e.g. ['SendMessages'] (or the same array JSON-encoded as a string).
allowNoPermission flag names to allow, e.g. ['SendMessages','ViewChannel'] (or the same array JSON-encoded as a string). Uses Discord PermissionsBitField flag names.
reasonNoOptional reason recorded in the server audit log.
role_idYesID (snowflake) of the role to grant/deny permissions for.
channel_idYesID (snowflake) of the channel to set the overwrite on.
Behavior4/5

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

Beyond annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description states that the overwrite merges (does not reset) and requires the 'Manage Roles' permission. This adds useful behavioral context.

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 concise sentences: first states purpose, second explains merge behavior, third adds permission requirement and alternative. No wasted words, front-loaded.

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 5 parameters and no output schema, the description covers purpose, behavior, permission requirement, and sibling tool. It lacks mention of error cases or default behavior but is adequate for correct usage.

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%; the input schema already documents all parameters clearly. The description adds no further parameter-specific meaning beyond behavior, so 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 clearly states the action: 'Add or update a per-channel permission overwrite for a role, allowing and/or denying specific permissions.' It uses specific verb (add/update) and resource (permission overwrite). It distinguishes the tool from a sibling: 'Use discord_set_member_permission to target a single member instead.'

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?

The description tells when to use this tool (for role permissions), mentions the merge behavior, and explicitly names the alternative for member permissions. It does not list explicit when-not scenarios but provides enough context for correct selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PaSympa/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server