Skip to main content
Glama
discord-mcp

discord-mcp

emojis_create

Upload a custom emoji to a Discord guild using a base64 data URI, with optional role restrictions and audit reason. Use it for programmatic brand emoji onboarding.

Instructions

Purpose: Upload a new custom emoji to a guild.

When to use: - Programmatic onboarding of brand emojis.

When NOT to use: - Application-wide emojis → use app_emojis_create. - Image > 256KB before base64 → Discord rejects.

Example: {guild_id:"…", name:"sparkle", image:"data:image/png;base64,iVBOR…"}

Returns: {id, name, animated, roles}. Image MUST be a base64 data URI.

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>",
      "image": "<image>"
    },
    "name": "emojis_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesEmoji name (2-32 chars)
imageYesEmoji image as a base64 data URI (e.g. "data:image/png;base64,…")
rolesNoRoles allowed to use this emoji (omit for everyone)
guild_idYesTarget guild
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "animated": {
      -        "type": "boolean"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "description": "Discord custom emoji ID",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "roles": {
      -        "items": {
      -          "description": "Discord role ID",
      -          "pattern": "^\\d{17,20}$",
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "animated",
      -      "roles"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "animated": {
      +        "type": "boolean"
      +      },
      +      "id": {
      +        "anyOf": [
      +          {
      +            "description": "Discord custom emoji ID",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "roles": {
      +        "items": {
      +          "description": "Discord role ID",
      +          "pattern": "^\\d{17,20}$",
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "animated",
      +      "roles"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observedv0.22.0

TDQS

A4.3/5.0
Behavior4/5

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

Adds context beyond annotations: the 256KB image size limit and Discord's rejection behavior, plus the mandatory base64 data URI format. Annotations already cover mutation/non-idempotent/non-destructive. It does not mention required permissions (e.g. MANAGE_EMOJIS) or rate limits, which would complete the picture.

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?

Front-loaded Purpose/When/When-NOT/Example/Returns layout is scannable and efficient. Minor redundancy: the base64 data URI requirement is stated in the example and again in the closing line.

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?

Output schema exists, so return values need not be explained, though the description briefly lists them. It covers the format and size constraints that matter for correct invocation. Permission requirements and rate-limit behavior are absent, a minor gap given complete schema coverage and annotations.

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

Parameters3/5

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

Schema coverage is 100%, so baseline is 3. The description restates the image data-URI requirement and provides an example call, but adds no semantics for roles, audit_reason, or name bounds beyond what the schema documents.

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

Purpose5/5

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

States a specific verb and resource (upload a new custom emoji to a guild) and explicitly distinguishes itself from the sibling app_emojis_create.

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

Usage Guidelines5/5

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

Explicit when-to-use (programmatic onboarding of brand emojis) and when-not-to-use with a named alternative (app_emojis_create), plus the 256KB pre-base64 rejection caveat.

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