discord_prune_members
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
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Inactivity threshold in days (1–30). | |
| roles | No | 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. | |
| reason | No | Optional reason recorded in the server audit log. | |
| dry_run | No | If true (default), only returns the count that would be pruned without removing anyone. Set false to actually prune. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). |