Create role
create_roleCreate a Discord role from a preset or explicit permission list, optionally add colors or icons, and preview the result with dry run.
Instructions
Create a role from a vetted preset (none, member, moderator, admin) and/or an explicit list of permission names. Administrator is never granted by a preset; it must be spelled out explicitly. Can start with a gradient or holographic color and an icon where the server has those features. Supports dry_run.
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 like #00b0f4. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| hoist | No | Show members separately in the sidebar. | |
| preset | No | Vetted permission bundle. Default none. | |
| dry_run | No | Preview without creating. | |
| icon_url | No | Public URL of a small image (png, jpeg, webp; 256 KB) shown beside members' names, or none to remove. Needs boost level 2. | |
| icon_emoji | No | A standard emoji shown beside members' names instead of an image, or none to remove. Needs boost level 2. | |
| holographic | No | Discord's holographic style, which uses its own three colors; false for a solid color. Needs the Enhanced Role Colors server feature. | |
| mentionable | No | ||
| permissions | No | Extra permission names, like manage_messages or ban_members. | |
| secondary_color | No | A second hex color, so the role name shows a gradient from color to this one; none for a solid color. Needs the Enhanced Role Colors server feature. |