Skip to main content
Glama

discord_bulk_remove_role

Idempotent

Remove one role from up to 50 Discord members in a single call, with dry-run preview by default. Validates permissions and rate limits, reporting changed, skipped, and remaining users.

Instructions

Remove one role from up to 50 members in one call. SAFE BY DEFAULT: dry_run is true unless explicitly set to false. A real call can first ask the user to confirm; without a yes it changes nothing, says so, and should not be repeated unless the user asks. Before any change, both modes refuse @everyone, a managed role (bot, integration, booster), a role not below the bot's highest role, and a bot without Manage Roles. The dry run sorts user_ids into would_change, skipped (do not have the role) and not_member; a real call sorts them again and changes only would_change, one request each. Discord allows about 10 role changes per 10 seconds, so a call stops after about 40 seconds and returns the rest in remaining, with the reason in stopped and any wait in stopped.retry_after_seconds: call again with those IDs after that wait, re-applying is harmless. Requires the Manage Roles permission. Returns { dry_run, would_change, skipped, not_member } for a preview and { dry_run, done, skipped, not_member, failed, remaining } after a real call. Use discord_remove_role for one member, or discord_bulk_add_role to undo.

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_id": "<role_id>",
      "user_ids": "<user_ids>"
    },
    "name": "discord_bulk_remove_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional reason recorded in the server audit log.
dry_runNoIf true (default), changes nothing and returns would_change. Set false to change the roles.
role_idYesID (snowflake) of the role.
guild_idYesDiscord server (guild) ID (snowflake).
user_idsYesUser IDs (snowflakes) of the members, 1-50 distinct.

Output Schema

NameRequiredDescriptionDefault
doneNoUser IDs whose role this call changed.
failedNoUser IDs Discord refused to change, with its error code.
dry_runYestrue for a preview: no role was changed.
skippedYesUser IDs already as asked, left untouched.
stoppedNoWhy the call stopped early.
remainingNoUser IDs this call did not reach. Call again with them: re-applying is harmless.
not_memberYesUser IDs that are not members of the server.
would_changeNoDry run only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.5.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true; the description corroborates idempotency and adds substantial context beyond that: refusal preconditions (@everyone, managed roles, role hierarchy, Manage Roles permission), the confirmation gate, and roughly 10 changes per 10 seconds with a ~40s cap. However, it also spends a sentence re-enumerating the return object shapes, which duplicates what the output schema already provides.

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 safety posture and default are front-loaded before operational detail, and nearly every sentence carries actionable information. The pairing of 'Returns { dry_run, would_change, ... } for a preview and { dry_run, done, ... } after a real call' restates the output schema and is the one removable passage.

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 bulk destructive-capable mutation with rate limits, permission gates, and partial-completion semantics, nothing an agent needs is missing: preconditions, confirmation flow, batching limits, stop/resume behavior, and the undo path are all covered.

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 value by explaining that dry_run defaults to true and that user_ids are partitioned into would_change, skipped, and not_member before any change, but it does not add syntax or format detail beyond what the schema and output schema already state.

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?

Opens with a specific verb, resource, and scope: 'Remove one role from up to 50 members in one call.' It explicitly contrasts with the sibling discord_remove_role ('for one member') and discord_bulk_add_role ('to undo'), so an agent can select it without opening any 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?

Names the single-member alternative and the inverse tool with the condition that selects each. It also states the retry protocol after a rate-limit stop ('call again with those IDs after that wait, re-applying is harmless'), which is exactly the decision an agent needs to make mid-task.

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