Skip to main content
Glama

Ban member

ban_member
Destructive

Ban a user from a Discord server, optionally deleting their recent messages. Preview the action first, then confirm to execute.

Instructions

Ban a user from the server, optionally deleting their recent messages. Works on users who already left (pass their user ID). Safe to call directly: the first call changes nothing and returns a preview plus a confirm_token; repeating the call with the token performs the ban. Relay the preview for the user's go-ahead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userYesMember name, or a user ID for someone not in the server.
guildNoGuild (server) name or ID. Omit to use the default guild.
reasonNo
delete_message_secondsNoAlso delete their messages from the last N seconds, up to 604800 (7 days).
dry_runNo
confirm_tokenNo
Behavior5/5

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

Discloses that the first call changes nothing and returns a preview and confirm_token, adding significant context beyond the destructiveHint annotation. No contradictions.

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?

Three concise sentences with no fluff. Front-loaded with the primary action, then covers edge cases and usage pattern.

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?

Covers the essential behavior and special cases. Could mention required permissions or what the preview contains, but is largely complete given the tool's complexity and annotations.

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?

Adds context for the user parameter (works on users who left) and explains the dry_run/confirm_token flow. Schema coverage is 50%, but description compensates well for the critical parameters.

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?

Clearly states the tool bans a user, with optional message deletion. Distinguishes from siblings like kick_member and bulk_ban by noting it works even if the user has left.

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 describes the safe two-step calling pattern: first call is a preview, second call with confirm_token performs the ban. Does not mention when not to use it, but provides clear usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrygnsCode/Omnicord'

If you have feedback or need assistance with the MCP directory API, please join our Discord server