Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Bulk update roles

bulk_update_roles
Destructive

Assign or remove a Discord role for every member matching filters like bot status, existing role, or join date, with a preview and confirmation before changes apply.

Instructions

Add or remove a role across every member matching a filter. Safe to call directly: the first call returns the affected count and a confirm_token; repeating the call with the token applies the change. Walks up to 3000 members and reports if it hits the cap.

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": {
      "action": "<action>",
      "role": "<role>"
    },
    "name": "bulk_update_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesRole name or ID.
guildNoGuild (server) name or ID. Omit to use the default guild.
actionYesassign gives the role to every matching member; remove takes it away.
filterNoWhich members: those holding a role, bots or not, or who joined before or after a date. Omit to match every member.
dry_runNoIf true, nothing is changed: the result shows what this call would do.
confirm_tokenNoThe token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.2.2
    • addedInput schema / properties / action / description
      Added value: +"assign gives the role to every matching member; remove takes it away."
    • addedInput schema / properties / dry_run / description
      Added value: +"If true, nothing is changed: the result shows what this call would do."
    • addedInput schema / properties / filter / description
      Added value: +"Which members: those holding a role, bots or not, or who joined before or after a date. Omit to match every member."
    • addedInput schema / properties / filter / properties / is_bot / description
      Added value: +"true for bots only, false for people only."
  2. Changed2 schema fields changedv1.4.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / confirm_token / description
      Added value: +"The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree."
  3. Changed2 schema fields changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / filter / additionalProperties
      Removed value: -false
  4. First observedv1.0.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description adds real context beyond them: a two-phase preview/confirm flow, the affected-count return, the 3000-member processing cap with cap reporting, and the dry_run behavior. What it does not cover is permission requirements or whether the change is reversible.

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 sentences, each carrying distinct load: purpose first, then the safety/confirmation protocol, then the scale limit. No repetition and nothing padding the front of the definition.

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 destructive tool with no output schema, the description supplies what the schema cannot: the response shape (affected count and confirm_token), the cap behavior, and the two-step application protocol. An agent has enough to call it correctly and safely.

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 description coverage is 100%, so every parameter including confirm_token, dry_run, and the nested filter fields is already documented in the schema. The description only echoes the filter concept and the confirm_token role, adding no syntax or format detail beyond structured data; baseline 3 applies.

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?

"Add or remove a role across every member matching a filter" gives a specific verb pair, resource, and scope, and the bulk-across-filter framing distinguishes it conceptually from single-member role changes. It stops short of naming a sibling such as assign_role or update_role to make the boundary explicit.

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

Usage Guidelines4/5

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

"Safe to call directly" plus the preview-then-confirm explanation tells the agent exactly how to invoke this destructive operation in practice, which is the main usage decision here. It does not name alternatives or state when a single-member or role-edit tool would be preferable.

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