Skip to main content
Glama
discord-mcp

discord-mcp

guild_get_prune_count

Read-onlyIdempotent

Preview how many inactive members would be kicked before running a guild prune. Use it to estimate impact by setting an inactivity threshold in days and optional role filters.

Instructions

Purpose: Preview how many members would be pruned (kicked) for inactivity.

When to use: - Estimate impact before calling guild_begin_prune.

days (1..30) is the inactivity threshold.

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} (estimated kick count).

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

Input Schema

NameRequiredDescriptionDefault
daysNoInactivity threshold in days (1..30, default 7)
guild_idYesGuild to query
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description goes further by disclosing that the result is an estimate that may differ from an actual prune, plus the non-obvious include_roles semantics (it widens rather than narrows, ALL-roles must match, role-less members always pruned). It also states the exact return field `{pruned}`, so the agent understands the output is a count, not a list, with no side effects.

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?

Front-loaded purpose, then usage, parameters, and returns in clearly labelled blocks that scan well. There is some redundancy - the days range and include_roles rules are repeated from the schema, and merge/summary and navigation text adds length without adding decision value.

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 3-parameter read-only query tool with full schema coverage, an output schema, and complete annotations, the definition covers purpose, trigger, parameter edge cases, and the meaning of the returned count. Nothing an agent needs in order to call it correctly or interpret the result is missing.

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 coverage is 100% and the description's parameter notes (days 1..30, include_roles widening rule, max 100) are essentially verbatim duplications of the schema's own property descriptions, so little meaning is added beyond the structured field. The counterintuitive ALL-roles logic is usefully re-surfaced in prose, but that is emphasis rather than new information, so baseline 3 applies.

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?

"Preview how many members would be pruned (kicked) for inactivity" names a specific verb (preview/count) and resource (guild prune), and the preview framing immediately separates it from the sibling guild_begin_prune that actually performs the prune.

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?

The "When to use" line gives an explicit trigger (estimate impact before calling `guild_begin_prune`) and names the alternative tool, so an agent knows both the condition for choosing this tool and the sequence it slots into.

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