Skip to main content
Glama
discord-mcp

discord-mcp

users_leave_guild

DestructiveIdempotent

Removes the authenticated bot or user from a Discord guild permanently. Use it to decommission a bot from a server it should no longer access.

Instructions

Purpose: Make the authenticated bot/user leave a guild. DESTRUCTIVE - bot loses access immediately.

When to use: - Decommission the bot from a guild it should no longer be in.

Note: User-scoped endpoint - does NOT accept audit_reason.

Returns: {left, guild_id}. Pass __confirm:true AND set MCP_DRY_RUN=false to actually leave.

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

Input Schema

NameRequiredDescriptionDefault
guild_idYesGuild to leave
__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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint and idempotentHint, but the description adds real context beyond them: the bot loses access immediately, this is a user-scoped endpoint that does not accept audit_reason, and the call is gated behind __confirm:true plus MCP_DRY_RUN=false. That dry-run/confirm interaction is exactly the kind of behavior an agent cannot infer from annotations.

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?

Structured under Purpose / When to use / Note / Returns with the destructive warning front-loaded, so the most important fact is seen first. The 'Returns' line duplicates the output schema slightly, but the sectioning keeps everything scannable and no sentence is padding.

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 two-parameter tool, the description covers the risk, the confirmation gate, the auth scope, a parameter caveat, and the return shape, while annotations and the output schema carry the rest. Nothing an agent needs to invoke it 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 both parameters are already documented, and the description adds meaning on top by explaining the conjunctive requirement between __confirm and the server-side MCP_DRY_RUN flag. It does not echo guild_id semantics, which the schema already handles.

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 ('Make the authenticated bot/user leave a guild') with an explicit scope qualifier ('authenticated'), and flags the destructive consequence up front. It is unambiguous and clearly distinct from read-oriented siblings such as users_list_current_user_guilds.

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?

Provides an explicit 'When to use' line covering the decommissioning case, which is the primary trigger. It gives no when-not guidance or named alternative, so it stops short of a 5, but the context is clear enough to select the tool confidently.

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