Skip to main content
Glama

discord_bulk_ban

Destructive

Ban multiple Discord users in one call to stop raids. Preview affected user IDs with dry-run, then execute after confirming; requires ban 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 exact list of user IDs that would be banned, then re-call with dry_run:false to actually ban them. Requires both the Ban Members and Manage Server permissions. Returns counts of banned vs failed users; 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional reason recorded in the server audit log.
dry_runNoIf true (default), only returns the user IDs that would be banned without banning anyone. 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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)."
  2. 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
  3. 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"
      +}
  4. 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."
  5. Addedv1.5.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the description's safety warning reinforces rather than repeats it. The description adds valuable behavioral details: dry_run defaults to true for safe preview, requires Ban Members and Manage Server permissions, returns counts of banned vs failed users, and fails wholesale with an error if no user can be banned. This goes beyond what the annotations provide, though it doesn't specify the exact error shape or response format.

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?

Four sentences, all information-dense with no filler. The critical safety instruction (dry_run default) is front-loaded, followed by permissions, return values, and the sibling comparison. Every sentence earns its place.

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?

This is a destructive bulk operation, and the description covers prerequisites (permissions), safety workflow (dry-run), behavior (counts, wholesale failure), and routing (sibling tool for single bans). The output schema is absent, but the description's mention of returned counts and error behavior compensates enough. The 200-user max and delete_message_seconds bounds are already in the schema. Nothing critical 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 schema already documents all five parameters thoroughly. The description adds cross-parameter context: it explains the safe-by-default workflow tying dry_run to the overall call behavior, and mentions the 200-user API limit context. It doesn't add per-parameter details beyond the schema, but it highlights the most important behavioral parameter (dry_run) and the safety implications.

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 ('Ban') and resource ('many users in a single call'), with an explicit intended use case ('raid mitigation'). It distinguishes itself from discord_ban_member by naming the sibling and the condition for choosing it (single ban with finer control).

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?

Provides explicit when-to-use guidance: use for raid mitigation and bulk banning; use discord_ban_member for a single ban with finer control. It also gives a clear workflow: call with dry_run first to preview, then re-call with dry_run:false. This is actionable routing for an agent.

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