Skip to main content
Glama

discord_bulk_ban

Destructive

Ban up to 200 users in one call for raid mitigation, with a dry-run preview by default so you can verify user IDs before banning. Requires Ban Members and Manage Server permissions.

Instructions

Ban many users in a single call, intended for raid mitigation. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the user IDs a real call would send to Discord, unchecked, then re-call with dry_run:false to actually ban them. Requires both the Ban Members and Manage Server permissions. Returns { dry_run, would_ban } for a preview, and { dry_run, banned, failed } with the user IDs after a real call; failed also lists users who were already banned. Discord rejects the whole call with an error if no user could be banned. Use discord_ban_member for a single ban with finer control.

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>",
      "user_ids": "<user_ids>"
    },
    "name": "discord_bulk_ban"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional reason recorded in the server audit log.
dry_runNoIf true (default), returns the user IDs a real call would send, unchecked, and bans no one. Set false to actually ban.
guild_idYesDiscord server (guild) ID (snowflake).
user_idsYesArray of user IDs (snowflakes) to ban (max 200 per call, a Discord API limit).
delete_message_secondsNoAlso delete each user's messages from the last N seconds (0–604800, i.e. up to 7 days). Default 0.

Output Schema

NameRequiredDescriptionDefault
bannedNoUser IDs banned by this call.
failedNoUser IDs not banned, including users who were already banned.
dry_runYestrue for a preview: no one was banned.
would_banNoDry run only: the user IDs a real call would send to Discord, unchecked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.4.0
    • changedInput schema / properties / dry_run / description
      Previous value: -"If true (default), only returns the user IDs that would be banned without banning anyone. Set false to actually ban."New value: +"If true (default), returns the user IDs a real call would send, unchecked, and bans no one. Set false to actually ban."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "banned": {
      +      "description": "User IDs banned by this call.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "dry_run": {
      +      "description": "true for a preview: no one was banned.",
      +      "type": "boolean"
      +    },
      +    "failed": {
      +      "description": "User IDs not banned, including users who were already banned.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "would_ban": {
      +      "description": "Dry run only: the user IDs a real call would send to Discord, unchecked.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "dry_run"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / user_ids / description
      Previous value: -"Array of user IDs (snowflakes) to ban (max 200 per call — Discord API limit)."New value: +"Array of user IDs (snowflakes) to ban (max 200 per call, a Discord API limit)."
  3. Changed10 schema fields changedv2.0.0
    • addedInput schema / properties / delete_message_seconds / default
      Added value: +0
    • addedInput schema / properties / delete_message_seconds / maximum
      Added value: +604800
    • addedInput schema / properties / delete_message_seconds / minimum
      Added value: +0
    • changedInput schema / properties / delete_message_seconds / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / dry_run / default
      Added value: +true
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • changedInput schema / properties / user_ids / description
      Previous value: -"Array of user IDs (snowflakes) to ban."New value: +"Array of user IDs (snowflakes) to ban (max 200 per call — Discord API limit)."
    • addedInput schema / properties / user_ids / items / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / user_ids / maxItems
      Added value: +200
    • addedInput schema / properties / user_ids / minItems
      Added value: +1
  4. Changed1 schema field changedv1.7.0
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "If true (default), only returns the user IDs that would be banned without banning anyone. Set false to actually ban.",
      +  "type": "boolean"
      +}
  5. Changed4 schema fields changedv1.6.0
    • changedInput schema / properties / delete_message_seconds / description
      Previous value: -"Delete messages from last N seconds (0–604800)."New value: +"Also delete each user's messages from the last N seconds (0–604800, i.e. up to 7 days). Default 0."
    • addedInput schema / properties / guild_id / description
      Added value: +"Discord server (guild) ID (snowflake)."
    • addedInput schema / properties / reason / description
      Added value: +"Optional reason recorded in the server audit log."
    • changedInput schema / properties / user_ids / description
      Previous value: -"Array of user IDs to ban."New value: +"Array of user IDs (snowflakes) to ban."
  6. Addedv1.5.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing required permissions (Ban Members and Manage Server), the safe-by-default dry_run behavior, that the whole call fails if no user could be banned, and that 'failed' includes already-banned users. Return shapes are partly covered by the output schema, so this is near-complete rather than exceptional.

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 critical safety default is capitalized and front-loaded before workflow detail, permissions, and return values, which is the right ordering. A few clauses ('the user IDs a real call would send to Discord, unchecked') are wordier than needed, but no sentence is filler.

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, open-world bulk mutation the description covers the safety mechanism, permission prerequisites, partial-failure semantics, error behavior, and the single-target alternative. Nothing an agent needs in order to call it correctly is missing.

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 an extra point by explaining the preview-to-real sequencing for dry_run and the nuance that previews are unchecked, which is actionable knowledge beyond the field definitions. It adds nothing for reason, delete_message_seconds, guild_id, or user_ids, but the schema already covers those fully.

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 and resource plus scope ('Ban many users in a single call') and states the intended scenario ('raid mitigation'), which distinguishes it immediately from discord_ban_member.

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?

Prescribes an explicit two-step workflow (preview with the default dry_run, then re-call with dry_run:false) and names the alternative tool and the condition that selects it: 'Use discord_ban_member for a single ban with finer control.'

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