Skip to main content
Glama

discord_prune_members

Destructive

Preview and remove Discord members inactive for a set number of days, with dry-run enabled by default to count candidates before irreversible removal.

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 Manage Server and Kick Members permissions (Administrator when the server has the PRUNE_REQUIRES_ADMIN feature).

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>",
      "days": "<days>"
    },
    "name": "discord_prune_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesInactivity threshold in days (1–30).
rolesNoOptional role IDs (snowflakes) to include; by default only members with no roles are counted. A member with roles is counted only when every role they hold is in this list.
reasonNoOptional reason recorded in the server audit log.
dry_runNoIf true (default), only returns the count that would be pruned without removing anyone. Set false to actually prune.
guild_idYesDiscord server (guild) ID (snowflake).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • changedInput schema / properties / roles / description
      Previous value: -"Optional role IDs (snowflakes) to include; by default only members with no roles are counted."New value: +"Optional role IDs (snowflakes) to include; by default only members with no roles are counted. A member with roles is counted only when every role they hold is in this list."
  2. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed6 schema fields changedv2.0.0
    • addedInput schema / properties / days / maximum
      Added value: +30
    • addedInput schema / properties / days / minimum
      Added value: +1
    • changedInput schema / properties / days / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / dry_run / default
      Added value: +true
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / roles / items / pattern
      Added value: +"^\\d{17,20}$"
  4. Changed5 schema fields changedv1.6.0
    • changedInput schema / properties / days / description
      Previous value: -"Number of days of inactivity (1–30)."New value: +"Inactivity threshold in days (1–30)."
    • changedInput schema / properties / dry_run / description
      Previous value: -"If true (default), only returns count without pruning."New value: +"If true (default), only returns the count that would be pruned without removing anyone. Set false to actually prune."
    • addedInput schema / properties / guild_id / description
      Added value: +"Discord server (guild) ID (snowflake)."
    • addedInput schema / properties / reason / description
      Added value: +"Optional reason recorded in the server audit log."
    • changedInput schema / properties / roles / description
      Previous value: -"Role IDs to include in the prune."New value: +"Optional role IDs (snowflakes) to include; by default only members with no roles are counted."
  5. Addedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing irreversibility ('members must rejoin'), the permission requirements (Manage Server and Kick Members, Administrator under PRUNE_REQUIRES_ADMIN), and the dry_run default. The destructiveHint=true annotation is reinforced rather than merely restated.

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 first, then safety default and workflow, then irreversibility and permissions. No padding or restated name/title material.

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 five-parameter tool with no output schema, everything an agent needs to call it correctly is present: default behavior, escalation path to actual removal, reversibility, and auth prerequisites.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by explaining the dry_run default and its role in a preview-then-commit flow, plus the role-based counting semantics. The days and roles parameters are largely left to the schema.

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?

States a specific verb and resource: 'Remove members who have been inactive (no roles, not seen) for a number of days.' The inactivity/no-roles criteria make it distinguishable from broader member tools, though no sibling tool is named explicitly for contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit two-step workflow: 'call it first to preview the count, then re-call with dry_run:false to actually remove them.' The safe default is spelled out, so an agent knows exactly when this tool will and will not mutate state.

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