Create role
create_roleCreate a new Discord server role with customizable name, color, permissions, and display settings.
Instructions
Create a role with an optional color, permissions, and display options.
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": {
"name": "<name>"
},
"name": "create_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Role name. | |
| color | No | Hex color, e.g. "#5865F2". | |
| hoist | No | Display members with this role separately in the sidebar. | |
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| mentionable | No | Allow anyone to @mention this role. | |
| permissions | No | Permission flag names, e.g. ["ManageChannels","KickMembers"]. |