Skip to main content
Glama

Set role permissions

set_role_permissions
Idempotent

Use this when the user wants to add or remove server-wide Discord permissions of a role (Administrator is never added). The card must then be confirmed on aiguild.me. Do not use for one channel; use set_channel_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>",
      "role": "<role>"
    },
    "name": "set_role_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoDiscord permission names to add.
roleYesThe role name, or "@everyone".
removeNoDiscord permission names to remove.
guild_idYesDiscord server ID, as returned by list_my_servers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) by disclosing that changes are only staged on a pending card, that nothing changes on Discord until apply_card, that a confirmation step on aiguild.me is required, and that Administrator is never added. Rate limits or failure modes for invalid permission names are not covered, keeping it short of a 5.

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 short sentences, front-loaded with the trigger condition, followed by the exclusion and the staging/consequence note. No sentence is redundant.

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 4-parameter, non-destructive staged-mutation tool with full schema coverage and no output schema, the description supplies the trigger, the exclusion, the safety constraint, and the follow-up step (apply_card) needed to call it correctly.

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 adds real meaning: it constrains what may go into 'add' (Administrator is never added) and frames role as a server-wide target. It still does not clarify accepted permission-name format or how multi-add/multi-remove interact, so it is not exhaustive.

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 (add/remove) and resource (server-wide Discord permissions of a role), and explicitly narrows scope against the sibling set_channel_permissions, which covers one channel. An agent can pick the right tool without opening the 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?

Gives explicit when-to-use ('user wants to add or remove server-wide Discord permissions of a role') and an explicit when-not ('Do not use for one channel; use set_channel_permissions'), naming the alternative. The downstream workflow requirement (confirm on aiguild.me, then apply_card) is also stated.

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