Skip to main content
Glama
discord-mcp

discord-mcp

webhooks_execute

Send Discord messages through a webhook token without bot authentication; use when you need webhook-only features and already hold the token.

Instructions

Purpose: Execute (send a message through) a webhook. Low-level escape hatch.

When to use: - You need a webhook-only feature (no bot user) and already hold the token.

Prefer instead: - messages_send for normal bot output. - components_v2_send for V2 component layouts (this tool is the raw escape hatch - V2 validation is intentionally z.record).

Auth: NO Authorization: Bot … header. Discord rejects bot auth on the execute route.

At least one of content, embeds, components, attachments, or poll is required.

Query params wait and with_components are passed in the URL, NOT the body.

Returns: When wait:true, {message_id, channel_id, webhook_id}. Otherwise {enqueued:true}.

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": {
      "webhook_id": "<webhook_id>",
      "token": "<token>"
    },
    "name": "webhooks_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttsNo
pollNo
waitNoQuery param: wait for the message to be created and return it
flagsNoMessage flags bitfield. V2 layout = 1<<15 = 32768 (IS_COMPONENTS_V2).
tokenYesWebhook secret - treat as credential, do not log
embedsNoLegacy embeds (V1 layout). For V2 layouts use `components_v2_send`.
contentNoMessage text (max 2000 chars)
usernameNoOverride the webhook display name for this message
thread_idNoPost into this thread (forum/text-thread channels)
avatar_urlNoOverride the webhook avatar URL for this message
componentsNoV1 action rows OR raw V2 component tree. Prefer `components_v2_send` for V2 layouts; this is the low-level escape hatch.
webhook_idYesWebhook id
attachmentsNo
thread_nameNoWhen the parent is a forum, name the new thread
applied_tagsNoForum tag ids to apply when creating a thread
payload_jsonNo
with_componentsNoQuery param: include components in the response message
allowed_mentionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the non-obvious auth rule (no 'Authorization: Bot' header; Discord rejects bot auth on this route), the at-least-one-of payload requirement, and the fact that wait/with_components are URL query params rather than body fields. Annotations cover the mutation/open-world profile; the description supplies the operational constraints an agent would otherwise get wrong.

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?

Bold section headers, front-loaded purpose, and short scannable lines make it fast to parse despite its length. The 'Returns' block is largely redundant given an output schema exists, so it is not fully waste-free.

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 an 18-parameter, open-world mutation tool with nested objects, the definition covers purpose, selection criteria, auth, payload constraints, query-param placement, and response shape. Nothing an agent needs to invoke it correctly is missing, and the return values are additionally backed by an output 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?

With 18 params at 72% coverage, the description adds real value: the 'at least one of content/embeds/components/attachments/poll' constraint is absent from the schema's required list, and the URL-vs-body routing of wait/with_components is a genuine pitfall callout. It does not explain the remaining undocumented parameters (payload_json, allowed_mentions, applied_tags, tts, flags bitfield usage), which keeps it off a 5.

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 plus resource ('Execute (send a message through) a webhook') and immediately frames the scope as a 'low-level escape hatch'. That framing alone lets an agent distinguish it from messages_send and components_v2_send without reading the schema.

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?

Both a 'When to use' and a 'Prefer instead' block are present, with two named alternatives and the conditions that select each (normal bot output, V2 component layouts). The tool's niche is explicitly bounded as the raw fallback, so an agent knows both when and when not to pick it.

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