Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Create role

create_role

Create Discord roles from vetted presets or explicit permission names, with optional colors, gradients, icons, and dry_run previews before applying changes to your server.

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

NameRequiredDescriptionDefault
nameYesRole name.
colorNoHex color like #00b0f4.
guildNoGuild (server) name or ID. Omit to use the default guild.
hoistNoShow members separately in the sidebar.
presetNoVetted permission bundle. Default none.
dry_runNoPreview without creating.
icon_urlNoPublic URL of a small image (png, jpeg, webp; 256 KB) shown beside members' names, or none to remove. Needs boost level 2.
icon_fileNoThe icon image from the local files folder (DISCORD_MCP_FILES_DIR), by name, instead of icon_url. Needs boost level 2.
icon_emojiNoA standard emoji shown beside members' names instead of an image, or none to remove. Needs boost level 2.
holographicNoDiscord's holographic style, which uses its own three colors; false for a solid color. Needs the Enhanced Role Colors server feature.
mentionableNoWhether anyone can @mention the role. Default false.
permissionsNoExtra permission names, like manage_messages or ban_members.
secondary_colorNoA 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.2
    • addedInput schema / properties / icon_file
      Added value: +{
      +  "description": "The icon image from the local files folder (DISCORD_MCP_FILES_DIR), by name, instead of icon_url. Needs boost level 2.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / mentionable / description
      Added value: +"Whether anyone can @mention the role. Default false."
  2. Changed5 schema fields changedv1.4.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / holographic
      Added value: +{
      +  "description": "Discord's holographic style, which uses its own three colors; false for a solid color. Needs the Enhanced Role Colors server feature.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / icon_emoji
      Added value: +{
      +  "description": "A standard emoji shown beside members' names instead of an image, or none to remove. Needs boost level 2.",
      +  "type": "string"
      +}
    • addedInput schema / properties / icon_url
      Added value: +{
      +  "description": "Public URL of a small image (png, jpeg, webp; 256 KB) shown beside members' names, or none to remove. Needs boost level 2.",
      +  "type": "string"
      +}
    • addedInput schema / properties / secondary_color
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv1.0.2

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses two meaningful behaviors: the admin permission is never inherited from a preset, and preset and permissions are additive rather than exclusive. It omits the gating permissions required to create a role and what happens on name collisions, which matters for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core behavior and preset semantics well in the first two sentences. The third sentence about gradient/holographic color and icons is vague ('where the server has those features') and largely restates schema-documented feature gates, so it earns less of its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 13 parameters at full schema coverage and no output schema, the description covers what the schema cannot: preset-permission interaction, the admin exception, dry_run, and server-feature gating. Missing only the required bot permission and any note about returning the created role, both minor given the rich schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds non-obvious semantics: the 'and/or' relationship between preset and permissions, and the rule that admin must be listed explicitly rather than coming from a bundle. It also clarifies that holographic styling overrides a solid color, which the schema hints at but does not state as a precedence.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (create a role) and defines the two construction paths: a vetted preset and/or an explicit permission list. The preset enum values and the admin exception make the scope concrete, though it never distinguishes itself from siblings like clone_role or bulk_update_roles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a real usage rule in 'Administrator is never granted by a preset; it must be spelled out explicitly' and flags dry_run as a supported mode. It does not say when to prefer this over clone_role (copy an existing role) or update_role (modify an existing one), so alternative selection is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools