Skip to main content
Glama

discord_send_webhook_message

Send Discord messages through a webhook ID and token without bot permissions, including content, embeds, and attachments. Authorize posts with the webhook token and return the new message ID.

Instructions

Send a message through a webhook using its ID and token (no bot permissions needed; the token authorizes the send). Supports per-message username/avatar overrides and up to 10 embeds. At least one of content or embeds is required. Returns the new message ID. Get the ID and token from discord_create_webhook or discord_list_webhooks; to post as the bot itself, use discord_send_message.

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>",
      "webhook_token": "<webhook_token>"
    },
    "name": "discord_send_webhook_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
embedsNoUp to 10 embed objects to attach to the webhook message.
contentNoPlain-text body of the message (max 2000 characters). Optional if embeds or attachments are provided.
usernameNoOverride the webhook's default display name for this message.
avatar_urlNoOverride the webhook's default avatar for this message.
webhook_idYesID (snowflake) of the webhook to send through.
attachmentsNoFiles to attach, up to 10, each as base64 data and a file name. All files together: at most 1398100 base64 characters, just under 1 MiB. Needs the Attach Files permission, except through a webhook.
webhook_tokenYesSecret token of the webhook (from discord_create_webhook or discord_list_webhooks).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.7.0
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Files to attach, up to 10, each as base64 data and a file name. All files together: at most 1398100 base64 characters, just under 1 MiB. Needs the Attach Files permission, except through a webhook.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "description": "File content, base64-encoded (max 1398100 characters, just under 1 MiB).",
      +        "maxLength": 1398100,
      +        "minLength": 1,
      +        "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
      +        "type": "string"
      +      },
      +      "description": {
      +        "description": "Alt text (max 1024 characters).",
      +        "maxLength": 1024,
      +        "type": "string"
      +      },
      +      "filename": {
      +        "description": "File name with its extension, such as report.pdf (max 255 characters).",
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "pattern": "^[^\\\\/]+$",
      +        "type": "string"
      +      },
      +      "spoiler": {
      +        "description": "true adds the SPOILER_ name prefix that hides the file, false removes it.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "data",
      +      "filename"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / content / description
      Previous value: -"Plain-text body of the message (max 2000 characters). Optional if embeds are provided."New value: +"Plain-text body of the message (max 2000 characters). Optional if embeds or attachments are provided."
  2. Changed6 schema fields changedv2.6.2
    • addedInput schema / properties / embeds / items / properties / author / properties / name / maxLength
      Added value: +256
    • addedInput schema / properties / embeds / items / properties / description / maxLength
      Added value: +4096
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / name / maxLength
      Added value: +256
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / value / maxLength
      Added value: +1024
    • addedInput schema / properties / embeds / items / properties / footer / maxLength
      Added value: +2048
    • addedInput schema / properties / embeds / items / properties / title / maxLength
      Added value: +256
  3. Changed2 schema fields changedv2.5.0
    • addedInput schema / properties / content / maxLength
      Added value: +2000
    • addedInput schema / properties / embeds / items / properties / fields / maxItems
      Added value: +25
  4. Changed4 schema fields changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / embeds / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / embeds / items / properties / author / additionalProperties
      Added value: +false
    • addedInput schema / properties / embeds / items / properties / fields / items / additionalProperties
      Added value: +false
  5. Changed14 schema fields changedv2.0.0
    • addedInput schema / properties / avatar_url / format
      Added value: +"uri"
    • addedInput schema / properties / avatar_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / embeds / items / properties / author
      Added value: +{
      +  "description": "Author block shown at the top of the embed.",
      +  "properties": {
      +    "icon_url": {
      +      "description": "Small icon shown next to the author name.",
      +      "format": "uri",
      +      "pattern": "^https?://",
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "Author display name.",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "URL the author name links to.",
      +      "format": "uri",
      +      "pattern": "^https?://",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / embeds / items / properties / color / pattern
      Added value: +"^#[0-9A-Fa-f]{6}$"
    • changedInput schema / properties / embeds / items / properties / fields / description
      Previous value: -"Up to 25 name/value field blocks."New value: +"Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row)."
    • changedInput schema / properties / embeds / items / properties / fields / items / properties / inline / description
      Previous value: -"If true, render side-by-side with adjacent inline fields."New value: +"If true, render this field side-by-side with adjacent inline fields."
    • addedInput schema / properties / embeds / items / properties / image_url / format
      Added value: +"uri"
    • addedInput schema / properties / embeds / items / properties / image_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / embeds / items / properties / thumbnail_url / format
      Added value: +"uri"
    • addedInput schema / properties / embeds / items / properties / thumbnail_url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / embeds / items / properties / url / format
      Added value: +"uri"
    • addedInput schema / properties / embeds / items / properties / url / pattern
      Added value: +"^https?://"
    • addedInput schema / properties / embeds / maxItems
      Added value: +10
    • addedInput schema / properties / webhook_id / pattern
      Added value: +"^\\d{17,20}$"
  6. Changed18 schema fields changedv1.6.0
    • changedInput schema / properties / avatar_url / description
      Previous value: -"Override the webhook's default avatar."New value: +"Override the webhook's default avatar for this message."
    • changedInput schema / properties / content / description
      Previous value: -"Text content of the message."New value: +"Plain-text body of the message (max 2000 characters). Optional if embeds are provided."
    • changedInput schema / properties / embeds / description
      Previous value: -"Optional array of embed objects."New value: +"Up to 10 embed objects to attach to the webhook message."
    • changedInput schema / properties / embeds / items / properties / color / description
      Previous value: -"Hex color e.g. #5865F2"New value: +"Side-bar color as a hex string, e.g. '#5865F2'."
    • addedInput schema / properties / embeds / items / properties / description / description
      Added value: +"Main body text of the embed (supports Markdown)."
    • addedInput schema / properties / embeds / items / properties / fields / description
      Added value: +"Up to 25 name/value field blocks."
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / inline / description
      Added value: +"If true, render side-by-side with adjacent inline fields."
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / name / description
      Added value: +"Field heading."
    • addedInput schema / properties / embeds / items / properties / fields / items / properties / value / description
      Added value: +"Field body text."
    • addedInput schema / properties / embeds / items / properties / footer / description
      Added value: +"Footer text shown at the bottom of the embed."
    • addedInput schema / properties / embeds / items / properties / image_url / description
      Added value: +"Large image shown below the embed body."
    • addedInput schema / properties / embeds / items / properties / thumbnail_url / description
      Added value: +"Small image shown in the top-right corner."
    • addedInput schema / properties / embeds / items / properties / timestamp / description
      Added value: +"If true, stamp the embed with the current time."
    • addedInput schema / properties / embeds / items / properties / title / description
      Added value: +"Embed title shown in bold at the top."
    • addedInput schema / properties / embeds / items / properties / url / description
      Added value: +"URL that makes the title clickable."
    • changedInput schema / properties / username / description
      Previous value: -"Override the webhook's default username."New value: +"Override the webhook's default display name for this message."
    • addedInput schema / properties / webhook_id / description
      Added value: +"ID (snowflake) of the webhook to send through."
    • addedInput schema / properties / webhook_token / description
      Added value: +"Secret token of the webhook (from discord_create_webhook or discord_list_webhooks)."
  7. Addedv1.5.0
  8. Removedv1.0.0
  9. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already disclose that the tool writes, is non-idempotent, open-world, and non-destructive. The description adds meaningful context beyond that: no bot permissions are required because the token authorizes the send, per-message username/avatar overrides are supported, and the tool returns the new message ID. Minor behavioral details such as rate limits or error behavior are omitted.

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 front-loaded with the core operation, then covers authorization, constraints, return value, and alternatives. Every sentence carries useful information and there is no redundant repetition of the name or title.

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?

For a 7-parameter mutation tool with no output schema, the description covers the essential context: authorization model, where to obtain credentials, supported content shape, return value, and the main alternative. The only notable gap is that it does not acknowledge attachments as a way to satisfy the content requirement, and it omits error/rate-limit behavior.

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 description coverage is 100%, so the schema already documents every parameter thoroughly. The description adds a few constraints like per-message username/avatar overrides and up to 10 embeds, but it also says at least one of content or embeds is required while the schema separately allows attachments, which is a slight semantic mismatch.

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 states a specific verb and resource: sending a message through a webhook using its ID and token. It also distinguishes this from discord_send_message, which posts as the bot itself, so the agent can identify the correct tool without opening 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?

It explicitly names where to get the required ID and token (discord_create_webhook or discord_list_webhooks) and gives a clear alternative for posting as the bot via discord_send_message. This is exactly the when-to-use and alternative guidance an agent needs.

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