discord_bulk_remove_role
Remove one role from up to 50 Discord members in a single call, with dry-run preview by default. Validates permissions and rate limits, reporting changed, skipped, and remaining users.
Instructions
Remove one role from up to 50 members in one call. SAFE BY DEFAULT: dry_run is true unless explicitly set to false. A real call can first ask the user to confirm; without a yes it changes nothing, says so, and should not be repeated unless the user asks. Before any change, both modes refuse @everyone, a managed role (bot, integration, booster), a role not below the bot's highest role, and a bot without Manage Roles. The dry run sorts user_ids into would_change, skipped (do not have the role) and not_member; a real call sorts them again and changes only would_change, one request each. Discord allows about 10 role changes per 10 seconds, so a call stops after about 40 seconds and returns the rest in remaining, with the reason in stopped and any wait in stopped.retry_after_seconds: call again with those IDs after that wait, re-applying is harmless. Requires the Manage Roles permission. Returns { dry_run, would_change, skipped, not_member } for a preview and { dry_run, done, skipped, not_member, failed, remaining } after a real call. Use discord_remove_role for one member, or discord_bulk_add_role to undo.
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>",
"role_id": "<role_id>",
"user_ids": "<user_ids>"
},
"name": "discord_bulk_remove_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason recorded in the server audit log. | |
| dry_run | No | If true (default), changes nothing and returns would_change. Set false to change the roles. | |
| role_id | Yes | ID (snowflake) of the role. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| user_ids | Yes | User IDs (snowflakes) of the members, 1-50 distinct. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | No | User IDs whose role this call changed. | |
| failed | No | User IDs Discord refused to change, with its error code. | |
| dry_run | Yes | true for a preview: no role was changed. | |
| skipped | Yes | User IDs already as asked, left untouched. | |
| stopped | No | Why the call stopped early. | |
| remaining | No | User IDs this call did not reach. Call again with them: re-applying is harmless. | |
| not_member | Yes | User IDs that are not members of the server. | |
| would_change | No | Dry run only. |