users_leave_guild
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
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Guild to leave | |
| __confirm | No | Set 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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||