Skip to main content
Glama

discord_ban_member

DestructiveIdempotent

Ban a Discord user from your server to prevent re-entry, with optional deletion of their recent messages and an audit-log reason.

Instructions

Ban a user from the server, blocking re-entry until unbanned. Optionally bulk-deletes their recent messages. Requires the Ban Members permission, and the bot's top role must outrank the target's. Use discord_unban_member to reverse, or discord_kick_member for a non-permanent removal. The reason is recorded in the audit log.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional reason recorded in the server audit log.
user_idYesDiscord user ID (snowflake) of the user to ban.
guild_idYesDiscord server (guild) ID (snowflake).
delete_message_daysNoAlso delete the user's messages from the last N days (0–7). Default 0 (delete nothing).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed6 schema fields changedv2.0.0
    • addedInput schema / properties / delete_message_days / default
      Added value: +0
    • addedInput schema / properties / delete_message_days / maximum
      Added value: +7
    • addedInput schema / properties / delete_message_days / minimum
      Added value: +0
    • changedInput schema / properties / delete_message_days / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / user_id / pattern
      Added value: +"^\\d{17,20}$"
  3. Changed4 schema fields changedv1.6.0
    • changedInput schema / properties / delete_message_days / description
      Previous value: -"Delete messages from last N days (0–7)."New value: +"Also delete the user's messages from the last N days (0–7). Default 0 (delete nothing)."
    • 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."
    • addedInput schema / properties / user_id / description
      Added value: +"Discord user ID (snowflake) of the user to ban."
  4. Addedv1.5.0
  5. Removedv1.0.0
  6. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark destructiveHint=true and readOnlyHint=false, and the description adds exactly the kind of context the rubric asks for: what gets destroyed (recent messages via bulk-delete), the auth/permission requirement, the role-hierarchy constraint, and the audit-log side effect. Everything disclosed is consistent with the annotations; idempotentHint=true aligns with the 'blocking re-entry' state model. No contradiction.

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, each earning its place: core purpose and permanence, optional destructive behavior, prerequisites plus sibling routing, and the audit-log side effect. The most decision-relevant information is front-loaded before alternatives and side effects, with zero 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 mutation tool with 100% schema coverage, annotations carrying the safety profile, and no output schema, nothing essential is missing. An agent knows what the operation does, what it destroys, what permissions are needed, how to reverse it, and the non-permanent alternative — all required to invoke it correctly.

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 (reason, user_id, guild_id, delete_message_days) is already fully documented in the schema. The description loosely ties 'bulk-deletes their recent messages' to delete_message_days and 'audit log' to reason, but it adds no new semantic detail beyond what the schema provides. The baseline 3 for high coverage is appropriate.

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?

The description opens with a specific verb and resource — 'Ban a user from the server' — and adds the defining effect, 'blocking re-entry until unbanned.' It also distinguishes itself from nearby siblings by name (discord_unban_member, discord_kick_member), so an agent can differentiate the operation 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?

The description explicitly routes to alternatives: 'Use discord_unban_member to reverse, or discord_kick_member for a non-permanent removal.' It also states the hard prerequisites upfront — 'Requires the Ban Members permission, and the bot's top role must outrank the target's' — leaving no ambiguity about when this tool is applicable.

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