roles_delete
Permanently delete a Discord guild role and remove it from all members who hold it. Use to tear down deprecated or integration roles; requires explicit confirmation.
Instructions
Purpose: Delete a role from a guild. DESTRUCTIVE - IRREVERSIBLE. All members holding this role lose it.
When to use: - Tear down deprecated/integration roles.
When NOT to use: - Just removing the role from a single user → use members_remove_role.
Returns: {deleted, role_id, guild_id}.
Security: gated by ConfirmRequired. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.
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>"
},
"name": "roles_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | Role to delete (IRREVERSIBLE) | |
| guild_id | Yes | Guild containing the role | |
| __confirm | No | Set true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned. | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||