Create role
create_roleCreate a Discord role in a guild by specifying name, permissions as names, color, and optional settings. Supports automated server provisioning.
Instructions
Create a role in a guild. Permissions are given as permission names (e.g. VIEW_CHANNEL, SEND_MESSAGES), never raw bitfields.
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": "create_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No | ||
| hoist | No | ||
| guild_id | Yes | ||
| position | No | Desired position; higher = higher in the role list | |
| mentionable | No | ||
| permissions | No | Permission names, e.g. ["VIEW_CHANNEL", "SEND_MESSAGES"] |