Skip to main content
Glama
discord-mcp

discord-mcp

commands_edit_command_permissions

Idempotent

Set per-command permission overrides for a Discord guild command, defining role, user, or channel access with a user OAuth2 token.

Instructions

Purpose: Set per-command permission overrides for one command in a guild.

Auth: This endpoint REQUIRES a user OAuth2 access token (Bearer …), NOT the bot token. The user must have permission to manage the guild AND access to the command. Pass the user access token via bearer_token.

Body: permissions is an array of {id, type, permission} overrides where type is 1=ROLE, 2=USER, 3=CHANNEL.

Returns: updated {id, application_id, guild_id, permissions}.

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": {
      "application_id": "<application_id>",
      "guild_id": "<guild_id>",
      "command_id": "<command_id>",
      "permissions": "<permissions>",
      "bearer_token": "<bearer_token>"
    },
    "name": "commands_edit_command_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
guild_idYesGuild scope
command_idYesCommand ID to edit permissions for
permissionsYesPermission overrides - max 100 per command
bearer_tokenYesRequired user OAuth2 access token (NOT bot token). Treated as a credential - do not log.
application_idYesBot/app application ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true. The description adds genuinely new behavioral context: which credential type is required (user OAuth2, not bot token), the precondition that the user manage the guild, and the response shape. It does not clarify whether the supplied permissions replace all existing overrides or merge with them, which matters given 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The Purpose/Auth/Body/Returns layout is front-loaded and easy to scan. The 'Returns' line is largely redundant because an output schema exists, and the trailing body detail partially restates the schema, so it is not maximally tight.

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 mutation tool with five required parameters, the definition covers the auth prerequisite, body semantics, and error-adjacent conditions well. The main omission is replacement-vs-merge semantics for existing overrides, which an agent needs to predict the effect of the call.

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 coverage is 100%, so the baseline is 3. The description does add meaning the schema lacks by decoding the `type` integer (1=ROLE, 2=USER, 3=CHANNEL) and by repeating the 100-item cap, though the bearer_token and its credential handling are already documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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+scope: 'Set per-command permission overrides for one command in a guild.' The 'one command' wording implicitly separates it from bulk siblings such as commands_bulk_overwrite_guild, but no sibling is named explicitly, so the differentiation is left partly to inference.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: the agent learns it must hold a user OAuth2 token with both guild-management permission and access to the command. There is no explicit when-to-use/when-not guidance, and no named alternative for the multi-command or bulk case.

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