Skip to main content
Glama

discord_create_webhook

Create a Discord channel webhook and return its ID and token for sending webhook messages; requires Manage Webhooks permission.

Instructions

Create a webhook on a channel and return its ID and token. SECURITY: the returned token grants anyone the ability to post as this webhook without authentication; treat it as a secret. Requires the Manage Webhooks permission. Use the returned id+token with discord_send_webhook_message. On a forum or media channel, discord_send_webhook_message cannot post through the webhook, since Discord then requires a thread. To reuse an existing webhook, find it with discord_list_webhooks.

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": {
      "channel_id": "<channel_id>",
      "name": "<name>"
    },
    "name": "discord_create_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDisplay name for the webhook (max 80 characters).
avatarNoOptional avatar image URL for the webhook.
channel_idYesID (snowflake) of the channel to attach the webhook to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / name / maxLength
      Added value: +80
  2. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed3 schema fields changedv2.0.0
    • addedInput schema / properties / avatar / format
      Added value: +"uri"
    • addedInput schema / properties / avatar / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
  4. Changed3 schema fields changedv1.6.0
    • changedInput schema / properties / avatar / description
      Previous value: -"Optional avatar URL for the webhook."New value: +"Optional avatar image URL for the webhook."
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the channel to attach the webhook to."
    • changedInput schema / properties / name / description
      Previous value: -"Name for the webhook."New value: +"Display name for the webhook (max 80 characters)."
  5. Addedv1.5.0
  6. Removedv1.0.0
  7. First observedv0.1.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is partly covered. The description adds genuine context the annotations cannot: the returned token is an unauthenticated secret, and Manage Webhooks permission is required. It does not, however, discuss rate limits or failure modes for the create call itself, leaving it at a solid but not exceptional mark.

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?

Four short sentences, front-loaded with purpose and the security warning, all carrying actionable content. Slightly over-packed: the forum/media caveat is really about the send tool's behavior and could be trimmed to one clause, but it does prevent a real follow-up error.

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

Completeness5/5

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

For a low-complexity 3-parameter create tool with no output schema, the description covers the return values (id and token), the permission prerequisite, the secret-handling hazard, and the next step in the workflow. Nothing an agent needs to call it safely is missing.

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% with per-parameter descriptions for name, avatar, and channel_id, so the baseline would be 3. The description earns above baseline by adding meaning to channel_id: on forum or media channels the resulting webhook cannot be used for posting, which the schema pattern alone does not convey.

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+resource ('Create a webhook on a channel') and the return value ('return its ID and token'), which lets an agent distinguish it from discord_edit_webhook, discord_list_webhooks, and discord_delete_webhook without reading schemas.

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?

Explicitly routes the agent: use the returned id+token with discord_send_webhook_message, reuse an existing webhook via discord_list_webhooks instead of creating one, and a stated when-not case (forum/media channels cannot be posted through by the send tool). This is when/when-not/alternatives coverage.

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