Skip to main content
Glama
discord-mcp

discord-mcp

roles_create

Creates a Discord guild role with configurable name, permissions, color, and display settings, enabling programmatic role provisioning for access tiers or integrations.

Instructions

Purpose: Create a new role in a guild.

When to use: - Programmatic role provisioning (e.g. tier-based roles, integration roles).

permissions is a base-10 STRING (Discord permission integer; bitfields exceed JS number safety).

Returns: {id, name, color, position, permissions, mentionable, hoist}.

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": "roles_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
iconNoRole icon (data URI; requires guild boost level)
nameNoRole name (default "new role")
colorNoRGB color integer
hoistNoDisplay members with this role separately in the sidebar
guild_idYesTarget guild
mentionableNoWhether @-mentioning the role notifies members
permissionsNoPermission bitfield as base-10 string
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
unicode_emojiNoRole unicode emoji (requires ROLE_ICONS feature)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.28.0
    • removedInput schema / properties / icon / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / icon / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / unicode_emoji / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / unicode_emoji / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.22.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is partly covered. The description adds a genuinely useful gotcha: `permissions` must be a base-10 string because bitfields exceed JS number safety. It omits required bot permissions, error behavior for duplicate names, and boost/feature prerequisites for icon and unicode_emoji, which the schema mentions only in passing.

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

Conciseness4/5

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

It is short and front-loaded, with clear Purpose and When-to-use sections. The Returns line restates a field list that the output schema already provides, so it is moderately redundant but not harmful.

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?

Given 9 parameters, full schema coverage, and an output schema, the description covers the essentials: what it creates, one use case, and the non-obvious permissions encoding. The main remaining gap is the permission prerequisite and failure modes, which an agent would need in order to invoke it successfully.

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 description coverage is 100%, so the baseline is 3. The description earns the extra point by explaining why `permissions` is a string rather than a number (JS number safety), which is rationale that the schema does not convey. Other parameters such as `color`, `hoist`, `icon`, and `audit_reason` are left entirely to the schema.

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 new role in a guild." That alone distinguishes it from roles_modify, roles_delete, and roles_list, though the description never names those siblings to reinforce the boundary.

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?

The "When to use" heading offers one concrete scenario, programmatic role provisioning such as tier-based or integration roles. There is no when-not guidance, no prerequisite check (for example, the MANAGE_ROLES permission), and no pointer to roles_modify for updating an existing role.

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