Skip to main content
Glama
cappyeo

discord-mcp

webhooks_execute

Send a Discord message by executing a webhook with its ID and token, enabling webhook-only integrations without a bot user.

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}.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond the annotations (readOnly=false, openWorld=true, idempotent=false, destructive=false), the description adds critical behavioral context: the special auth requirement (no `Authorization: Bot` header), the low-level V2 validation being `z.record`, query params being passed in the URL not body, and return behavior for `wait:true` vs otherwise.

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

Conciseness5/5

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

The description is well-structured with bold section headers and bullet-like lines. Every sentence serves a purpose: purpose, when to use, alternatives, auth caveat, required payload note, and return contract. It is appropriately sized for a complex escape-hatch tool.

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?

Given the tool's complexity (18 params, nested objects, special auth, low-level escape hatch), the description covers the essential context: auth constraints, query param placement, required fields, and return values. The presence of an output schema does not obviate the need for these behavioral details, and they are all included.

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

Parameters5/5

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

The description adds vital parameter semantics beyond the schema by explaining that `wait` and `with_components` are URL query params, that at least one of `content`, `embeds`, `components`, `attachments`, or `poll` is required, and that V2 component layout validation is intentionally loose (z.record). These nuances are not inferable from the input schema alone.

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?

The description clearly states the tool's purpose: 'Execute (send a message through) a webhook.' It further distinguishes itself with 'Low-level escape hatch' and explicitly points to `messages_send` and `components_v2_send` as alternatives, making its role among siblings unambiguous.

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?

Provides explicit 'When to use' and 'Prefer instead' sections with named alternatives (`messages_send`, `components_v2_send`). It also states the prerequisite of holding the token, which is actionable guidance for choosing this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cappyeo/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server