Delete role
delete_roleDelete a Discord role through a gated two-step flow: the first call returns a preview and confirm token, and the role is removed only when the call is repeated with that token.
Instructions
Delete a role. Members holding it simply lose it; nothing else changes. Safe to call directly: the first call deletes nothing and returns a preview plus a confirm_token, and the deletion only happens when the call is repeated with that token. Prefer this gated flow over telling the user to delete the role manually.
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": {
"role": "<role>"
},
"name": "delete_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role name or ID. | |
| 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. |