Skip to main content
Glama

discord_prune_members

Destructive

Prune members inactive for a set number of days. Preview the count with dry run, then confirm to remove irreversibly.

Instructions

Remove members who have been inactive (no roles, not seen) for a number of days. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the count, then re-call with dry_run:false to actually remove them. Removal is irreversible (members must rejoin). Requires the Kick Members permission.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guild_idYesDiscord server (guild) ID (snowflake).
daysYesInactivity threshold in days (1–30).
rolesNoOptional role IDs (snowflakes) to include; by default only members with no roles are counted.
dry_runNoIf true (default), only returns the count that would be pruned without removing anyone. Set false to actually prune.
reasonNoOptional reason recorded in the server audit log.
Behavior5/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds critical behavioral context: removal is irreversible, requires 'Kick Members' permission, and the dry_run default behavior (safe by default). No contradiction with annotations.

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 sentences, each earning its place: purpose, safety mechanism, and consequences/permissions. No unnecessary words. Front-loaded with the core action.

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?

No output schema, but the description hints at return count ('preview the count'). It covers key aspects: safety, permissions, irreversibility. Could be slightly more explicit about the return format, but overall sufficient given the tool's destructive nature.

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%, so parameters are well-documented in the schema. The description adds little beyond explaining the dry_run default and that roles are optional. Baseline 3 is appropriate as the schema carries the weight.

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?

The description explicitly states 'Remove members who have been inactive (no roles, not seen) for a number of days,' providing a specific verb and resource. It clearly distinguishes from sibling tools like discord_kick_member or discord_ban_member, which are immediate removals, by focusing on inactivity pruning.

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?

The description gives clear usage context: pruning inactive members. It includes safety guidance, advising a dry_run first to preview. However, it does not explicitly compare to alternatives (e.g., kick, ban) or state when not to use this tool, missing an opportunity for fuller guidance.

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/PaSympa/discord-mcp'

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