Skip to main content
Glama

discord_send_message

Sends a plain-text message to a Discord channel or thread, with optional file attachments, and returns the new message ID. Use it for simple text posts when rich embeds or replies are not needed.

Instructions

Send a plain-text message to a channel or thread. For rich content (title, color, fields, images) use discord_send_embed; to attach a reply reference to an existing message use discord_reply_message. Requires the bot to have the Send Messages permission (or Send Messages in Threads for a thread). Returns the new message ID. Use discord_send_multiple_embeds for several embeds, discord_forward_message to share an existing message, discord_send_webhook_message to post as a webhook, discord_create_poll for a poll, or discord_send_dm for a DM; in a thread, discord_reply_to_forum does the same.

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": "discord_send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNoPlain-text body of the message (max 2000 characters). Optional with attachments.
channel_idYesID (snowflake) of the target channel or thread.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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)."New value: +"Plain-text body of the message (max 2000 characters). Optional with attachments."
    • changedInput schema / required
      Previous value: -[
      -  "channel_id",
      -  "content"
      -]New value: +[
      +  "channel_id"
      +]
  2. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / content / maxLength
      Added value: +2000
  3. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
  5. Changed2 schema fields changedv1.6.0
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the target channel or thread."
    • addedInput schema / properties / content / description
      Added value: +"Plain-text body of the message (max 2000 characters)."
  6. Addedv1.5.0
  7. Removedv1.0.0
  8. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, but the description still adds real context beyond them: the required Send Messages / Send Messages in Threads permission and the fact that the call returns the new message ID. It stops short of noting rate limits or that retries can duplicate a message given idempotentHint=false, which would have made it a 5.

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?

Purpose, main alternatives, permission and return value are front-loaded in the first three sentences. The trailing enumeration of six further siblings is dense and of diminishing value (the forum-reply clause in particular), making the entry longer than it needs to be, though nothing is truly wasted.

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 three-parameter send tool with full schema coverage and no output schema, the description covers selection, permissions and return value adequately. The remaining gap is behavioral nuance around non-idempotency, which matters for an agent deciding whether to retry.

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 content, channel_id and attachments are already fully documented with lengths, patterns and permission notes. The description adds only the 'plain-text' qualifier for content, which is consistent with the schema but not meaningfully additive; baseline 3 applies.

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 opens with a specific verb and resource ('Send a plain-text message to a channel or thread') and immediately distinguishes it from discord_send_embed and discord_reply_message. An agent can identify the correct tool without inspecting any 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?

It routes the agent explicitly: rich content goes to discord_send_embed, reply references to discord_reply_message, multiple embeds, forwards, webhooks, polls, DMs and forum replies each get a named sibling. When-to-use and when-to-use-something-else are both stated rather than inferred.

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