Skip to main content
Glama
discord-mcp

discord-mcp

members_unban

Idempotent

Remove a ban for a Discord user in a specified guild so they can rejoin, optionally recording an audit reason.

Instructions

Purpose: Remove a ban for a user (allowing them to rejoin).

When to use: - Restore a previously-banned user.

Returns: {unbanned, user_id, guild_id}. Idempotent - unbanning a non-banned user returns 404 from Discord.

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_unban"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesBanned user to release
guild_idYesGuild to unban from
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, and an output schema exists, so the 'Returns' line largely repeats structured data. The genuinely additive piece is the failure behavior for non-banned users, though calling that 'idempotent ... returns 404' sits awkwardly against idempotentHint=true and would benefit from clarification rather than contradiction.

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?

Labeled Purpose/When to use/Returns sections are front-loaded and scannable with no filler. The Returns element is somewhat redundant against the existing output schema, which is the only real waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With rich annotations, a full output schema and 100% parameter coverage, the description supplies the remaining essentials: intent, trigger condition, and the notable 404 edge case. What is missing is the permission or role required to unban, which matters for a moderation action.

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%, with all three parameters documented including the audit_reason header semantics, so the schema does the heavy lifting. The description adds no parameter-level detail such as format constraints or whether audit_reason is optional, meeting only the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb and resource ('Remove a ban for a user') with the practical effect '(allowing them to rejoin)', which clearly distinguishes it from the sibling members_ban. It stops short of explicitly naming the inverse or adjacent tools, so a 4 rather than a 5.

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?

'When to use: Restore a previously-banned user' gives a clear triggering condition. It provides no explicit exclusions or alternatives (e.g., when to prefer members_kick or members_get_ban first), so the guidance is clear but not exhaustive.

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