List roles
list_rolesLists Discord server roles from highest to lowest with IDs, positions, colors, flags, and key permissions, marking the bot's highest role to show which roles it can manage.
Instructions
Lists server roles from highest to lowest with ID, position, color, flags and notable permissions. Marks the bot's highest role: the bot can only manage roles below it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild | No | Server ID or name. Optional if DISCORD_GUILD_ID is set or the bot is in one server. | |
| limit | No | Max items to return (1-250, default 100). | |
| query | No | Only roles whose name contains this text. | |
| cursor | No | The next_cursor value from a previous call. |