Skip to main content
Glama
discord-mcp

discord-mcp

guild_begin_prune

Destructive

Kick inactive members by starting a guild prune after a set inactivity period; confirmation and dry-run safeguards prevent accidental removal.

Instructions

Purpose: Kick inactive members. DESTRUCTIVE - kicked members must rejoin manually.

When to use: - Reduce inactive bloat in large communities.

compute_prune_count (default true) returns the actual count; set false for large guilds (returns null) to avoid timeouts.

include_roles WIDENS the prune (does not narrow it). An inactive member is pruned only if ALL of their roles appear in this list; a member holding ANY role not listed is never pruned. Members with no roles are always pruned regardless. Max 100.

Returns: {pruned, guild_id} - pruned is null if compute_prune_count was false.

Security: gated by ConfirmRequired. Pass __confirm:true AND set MCP_DRY_RUN=false to actually prune.

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": "guild_begin_prune"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoInactivity threshold in days (1..30, default 7)
guild_idYesGuild to prune
__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.
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
include_rolesNoWIDENS the prune (does not narrow it). An inactive member is pruned only if ALL of their roles appear in this list; a member holding ANY role not listed is never pruned. Members with no roles are always pruned regardless. Max 100.
compute_prune_countNoWhether to return prune count (default true; set false for large guilds)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses the irreversibility detail that kicked members must rejoin manually, the dry-run/ConfirmRequired gating requiring both __confirm:true and MCP_DRY_RUN=false, the timeout trade-off, and the exact return shape with pruned possibly null. This is exactly the operational context an agent needs before performing a destructive call.

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?

The description is sectioned into Purpose, When to use, Returns, and Security, with the destructive warning front-loaded before any parameter detail. Every block earns its place; there is minor redundancy with the schema text but nothing wasteful.

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, gated, six-parameter tool this covers the full picture: what it does, when, parameter edge cases, the confirmation requirement, dry-run behavior, and expected output. An output schema exists, yet the inline return summary is a helpful extra rather than a gap filler.

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 the baseline is 3, and the description largely restates the same include_roles and compute_prune_count explanations already present in the schema. The counterintuitive 'WIDENS the prune (does not narrow it)' semantics are genuinely valuable, but they are duplicated rather than added beyond the structured field.

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 opens with a concrete verb and resource ('Kick inactive members') and labels the operation destructive in bold, so an agent knows exactly what the tool does. It does not name the relevant sibling guild_get_prune_count, so the count-vs-prune distinction is only implicit through the compute_prune_count flag discussion.

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?

A dedicated 'When to use' section states the intended scenario ('Reduce inactive bloat in large communities'), and it gives conditional guidance for compute_prune_count (false for large guilds to avoid timeouts). It provides no explicit when-not-to-use guidance and no named alternative for agents that only want a count without pruning.

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