Skip to main content
Glama

discord_bulk_add_role

Idempotent

Assign one Discord role to up to 50 members in a single call, previewing changes with a dry run before applying them.

Instructions

Add one role to 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 (already 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_add_role for one member, or discord_bulk_remove_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_add_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.8/5.0
Behavior5/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 the dry-run default, the confirmation requirement, the four pre-flight refusals (@everyone, managed roles, role hierarchy, missing Manage Roles), per-ID outcome buckets, the roughly 10-per-10-seconds rate limit with an approximately 40-second cutoff, and that re-applying is harmless. These are the operational facts an agent needs to avoid a runaway loop or an unconfirmed mass change.

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?

Front-loaded with the action and the SAFE BY DEFAULT clause, then validation, then rate-limit recovery, then alternatives — a sensible order. It is dense and long, and the final listing of both return shapes duplicates what the output schema already provides, which is the main place words could be trimmed.

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 mass-mutation tool with partial-failure semantics, every operationally relevant dimension is covered: permission prerequisite, refusal conditions, partial completion and resumption, idempotency, and confirmation. Nothing an agent needs to call it correctly is missing, even though the return-value explanation is partly redundant with the output schema.

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; the description earns above that by explaining what user_ids produces (would_change / skipped / not_member partitioning) and reinforcing that dry_run defaults to true unless explicitly set false. It adds little about reason or the snowflake formats, but those are already fully documented in the schema.

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, resource, and scope ('Add one role to up to 50 members in one call'), which immediately separates it from the single-member sibling discord_add_role. No ambiguity about what changes on the server.

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?

Explicitly routes to alternatives: 'Use discord_add_role for one member, or discord_bulk_remove_role to undo.' It also gives when/when-not guidance through the dry_run default, the confirmation gate, and the retry-after-rate-limit instruction, so the agent knows both the safe path and the escalation path.

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