edit_role
Update an existing Discord role's settings and permissions, including name, color, position, hoist, mentionable, and permission values.
Instructions
Edit an existing role settings and permissions
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": {
"roleId": "<roleId>"
},
"name": "edit_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name | |
| color | No | New hex color string (e.g. "#00FF00") | |
| hoist | No | Display role separately in sidebar | |
| reason | No | Audit log reason | |
| roleId | Yes | Role ID to edit | |
| guildId | No | Discord server ID (defaults to DISCORD_GUILD_ID) | |
| position | No | Role position index | |
| mentionable | No | Allow anyone to mention role | |
| permissionsRaw | No | Permission bitfield string | |
| permissionsNames | No | CSV of permission names |