Skip to main content
Glama
discord-server-mcp

discord-server-mcp

set_member_roles

Assign or remove Discord member roles, optionally previewing changes with a dry run and logging reasons to the audit log.

Instructions

Give roles to a member and/or take roles away.

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": {
      "member": "<member>"
    },
    "name": "set_member_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
botNoUse this bot (name or id) instead of choosing automatically
memberYes
reasonNoReason shown in the server's audit log
removeNo
serverNoServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
dry_runNoShow the requests that would be made without changing anything

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations supply only readOnlyHint=false, so the description carries the burden of disclosure for a mutation tool. It says nothing about required permissions, role hierarchy limits, whether removing roles is reversible, that changes are written to the server audit log, or that a dry_run mode exists (that only appears in the schema).

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?

A single front-loaded sentence with no filler or repetition. Brevity here comes at the cost of substance rather than from trimming waste, but the structure itself is clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with only a readOnlyHint=false annotation and no output schema, the description leaves notable gaps: no permission or hierarchy preconditions and no mention of the audit-log reason or dry_run behavior. The add/remove duality is captured, which is the core semantics, but the surrounding operational context is missing.

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 57%, with bot, reason, server, and dry_run documented but add, remove, and member bare. The description partially compensates by clarifying that add means granting roles and remove means revoking them, and that the target is a member. It adds no syntax or format detail for role identifiers, though.

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 sentence names a specific verb pair and resource: give roles to a member and take roles away. An agent can tell this mutates a member's role set rather than a role object or server permission. It does not distinguish itself from near-neighbors like set_permissions or edit_role, which is the only thing keeping it below a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites such as needing Manage Roles or a role hierarchy position, and no reference to alternatives like set_permissions for permission overwrites. The agent must infer all routing and preconditions from the name alone.

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