discord_create_role
Create a new Discord server role with a specified name, color, permissions, and display settings, returning its ID for assigning members.
Instructions
Create a new role in a server. Requires the Manage Roles permission; the new role is placed below the bot's highest role. Use discord_add_role to then assign it to members. Returns the new role's name and ID. To change an existing role, use discord_edit_role.
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>",
"name": "<name>"
},
"name": "discord_create_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new role (max 100 characters). | |
| color | No | Role color as a hex string, e.g. '#FF5733'. | |
| hoist | No | If true, display members with this role separately in the member list. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| mentionable | No | If true, anyone can @mention this role. | |
| permissions | No | Server-wide permission flag names to grant, e.g. ['SendMessages','ViewChannel']. Uses Discord PermissionsBitField flag names. |