Skip to main content
Glama
discord-mcp

discord-mcp

members_ban

DestructiveIdempotent

Ban a user from a Discord guild to permanently remove a malicious member; optionally delete their recent messages.

Instructions

Purpose: Ban a user from a guild. DESTRUCTIVE - user can't rejoin until unbanned.

When to use: - Permanent removal of a malicious user.

When NOT to use: - Soft-removal → use members_kick. - Multiple users → use members_bulk_ban.

Optional delete_message_seconds (0..604800) deletes that user's recent messages.

Returns: {banned, user_id, guild_id}. Idempotent - re-banning is a no-op.

Security: gated by ConfirmRequired. Pass __confirm:true AND set MCP_DRY_RUN=false to actually ban.

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_id": "<user_id>"
    },
    "name": "members_ban"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesMember to ban
guild_idYesGuild to ban from
__confirmNoSet true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned.
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
delete_message_secondsNoDelete the user's messages from the last N seconds (0..604800 = up to 7 days)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive and idempotent, and the description still adds real context: the consequence ('user can't rejoin until unbanned'), the side effect of delete_message_seconds, the confirmation gate (`__confirm:true` plus `MCP_DRY_RUN=false`), and what happens in dry-run. This is behavior an agent cannot infer from the structured fields alone.

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?

Front-loaded purpose line, then labeled sections for when/when-not, side effects, returns, and security. Every sentence carries decision-relevant information and no line 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 five-parameter mutation, it covers consequence, alternatives, confirmation prerequisites, and side effects. An output schema exists and the description still names the return shape, so nothing an agent needs to call this safely 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 a 3 is the floor, and the description goes beyond it by explaining that delete_message_seconds deletes that user's recent messages and by spelling out the two-part confirmation protocol for `__confirm`. audit_reason and the ID formats are left to the schema, which is acceptable given full coverage.

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 and resource ('Ban a user from a guild') and immediately scopes it against the two nearest siblings, members_kick and members_bulk_ban. An agent can distinguish this from every other member tool without opening a schema.

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?

Explicitly gives a when-to-use case (permanent removal of a malicious user) and two when-NOT-to-use routes with the exact alternative tool names. The only mild gap is that it does not mention members_unban or members_get_ban as related flows, but the destructive/soft-removal split is fully covered.

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