Skip to main content
Glama

Give or remove roles (admin)

discord_admin_set_member_roles
Destructive

Add or remove roles for one Discord member using their user ID, with an optional reason recorded in the audit log.

Instructions

Add and/or remove roles (names or IDs) for one member, by user ID (see discord_admin_list_members).

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": {
      "user_id": "<user_id>"
    },
    "name": "discord_admin_set_member_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
reasonNoReason, recorded in Discord's audit log
removeNo
user_idYesThe member's user ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare this as destructive, non-read-only, and open-world, so the description need not restate the safety profile. It adds useful context that roles may be supplied by name or ID and that the operation is scoped to a single member, but it does not mention audit-log behavior, permission requirements, or role hierarchy constraints.

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?

The definition is a single compact sentence with the action and scope front-loaded. The parenthetical and sibling reference are both useful and there is no wasted wording.

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 four-parameter destructive admin tool with annotations covering safety and schema coverage for user_id and reason, the description provides enough scope and input guidance to call it correctly. It could be stronger by noting that at least one add/remove role should be supplied and by mentioning permission or hierarchy constraints.

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 50%, with user_id and reason documented in the schema. The description compensates by clarifying that add/remove accept role names or IDs and that user_id identifies the member, but it does not mention the reason parameter or audit-log recording, and the add/remove arrays remain minimally described.

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 states a specific verb pair (add/remove) and resource (roles) for a clearly scoped target: one member identified by user ID. It also points to discord_admin_list_members for obtaining IDs, though it does not explicitly name the bulk-roles sibling as the alternative for multi-member changes.

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 is implied by 'for one member' and the reference to discord_admin_list_members for user IDs. However, it does not explicitly say when to use this instead of discord_admin_bulk_roles or setup/admin role tools, nor does it note prerequisites such as needing at least one role in add or remove.

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