Prune members
prune_membersRemove server members who have been inactive for a set number of days and hold no roles; preview the count first, then confirm to apply the cleanup.
Instructions
Remove members inactive for a number of days who hold no roles. Needs Kick Members and Manage Server, or Administrator where the owner has made pruning admin-only. Safe to call directly: the first call counts who would go using Discord's own preview and returns a confirm_token; repeating the call with the token prunes for real.
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": {
"days": "<days>"
},
"name": "prune_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Inactivity threshold in days. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| reason | No | The reason recorded in the server's audit log. | |
| dry_run | No | If true, nothing is changed: the result shows what this call would do. | |
| confirm_token | No | The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree. |