Skip to main content

Send Message

Immutable Catalog + Curated Guide

This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.

WRITEdiscord.send_message
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: discord-2026.07.12.3
  • Descriptor hash: 2bfe6c2b65154d880643da880110b9ca04e9b9660c44458febc45a5768756b19

Post messages or embeds to channels and threads.

Request Body

{
"jsonrpc": "2.0",
"id": "discord-send-message-example",
"method": "tools/call",
"params": {
"name": "discord.send_message",
"arguments": {
"channel_id": "123456789",
"message": "Release 2.7 is now live.",
"embed_title": "Release Update",
"embed_description": "Patch notes are in #announcements"
}
}
}

Arguments Schema

{
"type": "object",
"title": "send_message input",
"properties": {
"file": {
"anyOf": [
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Public HTTP(S) attachment URL."
},
"path": {
"type": "string",
"description": "Allowlisted server-local attachment path."
},
"base64": {
"type": "string",
"description": "Base64 or data-URL attachment bytes."
},
"filename": {
"type": "string",
"description": "Attachment filename including extension."
},
"content_type": {
"type": "string",
"description": "Optional attachment MIME type."
}
},
"description": "One attachment source object.",
"additionalProperties": false
},
{
"type": "string"
},
{
"type": "null"
}
],
"title": "File",
"default": null,
"description": "Optional attachment object or source string; use exactly one attachment source field."
},
"confirm": {
"type": "string",
"title": "Confirm",
"default": "",
"description": "Exact phrase CONFIRM APPLY when confirmation policy is enabled; never place credentials here."
},
"dry_run": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"title": "Dry Run",
"default": false,
"description": "When true, validate and return the plan without changing Discord state."
},
"message": {
"type": "string",
"title": "Message",
"default": "",
"description": "Message text to send; do not include credentials or confirmation tokens."
},
"file_url": {
"type": "string",
"title": "File Url",
"default": "",
"description": "Public HTTP(S) attachment URL; private and loopback destinations are rejected."
},
"file_name": {
"type": "string",
"title": "File Name",
"default": "",
"description": "Safe attachment filename including extension."
},
"file_path": {
"type": "string",
"title": "File Path",
"default": "",
"description": "Allowlisted server-local path; hosted agents should use file_base64 or file_url."
},
"attachment": {
"anyOf": [
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Public HTTP(S) attachment URL."
},
"path": {
"type": "string",
"description": "Allowlisted server-local attachment path."
},
"base64": {
"type": "string",
"description": "Base64 or data-URL attachment bytes."
},
"filename": {
"type": "string",
"description": "Attachment filename including extension."
},
"content_type": {
"type": "string",
"description": "Optional attachment MIME type."
}
},
"description": "One attachment source object.",
"additionalProperties": false
},
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Attachment",
"default": null,
"description": "Legacy alias for file. Provide one object with base64, url, or path plus optional filename and content_type, or one source string."
},
"channel_id": {
"type": "string",
"title": "Channel Id",
"default": "",
"description": "Discord channel snowflake; empty uses the primary channel only where documented."
},
"embed_color": {
"type": "string",
"title": "Embed Color",
"default": "",
"description": "Optional embed color as a base-10 integer string from 0 through 16777215."
},
"embed_title": {
"type": "string",
"title": "Embed Title",
"default": "",
"description": "Optional embed title, limited to Discord's 256-character title limit."
},
"file_base64": {
"type": "string",
"title": "File Base64",
"default": "",
"description": "Base64 or data-URL bytes for one attachment within the configured decoded-size limit."
},
"thread_name": {
"type": "string",
"title": "Thread Name",
"default": "",
"description": "Optional continuation-thread name for split delivery."
},
"thread_if_split": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"title": "Thread If Split",
"default": false,
"description": "When true, create a continuation thread if splitting is required and allowed."
},
"embed_description": {
"type": "string",
"title": "Embed Description",
"default": "",
"description": "Optional embed body text; Discord size limits are validated."
},
"file_content_type": {
"type": "string",
"title": "File Content Type",
"default": "",
"description": "Optional attachment MIME type when it cannot be safely inferred."
}
},
"description": "Validated input for the Discord MCP send_message tool."
}

Output Schema

{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"data",
"meta"
],
"properties": {
"ok": {
"const": true
},
"data": {
"type": "object",
"properties": {
"dry_run": {
"type": [
"boolean",
"null"
],
"description": "Provider data field dry_run returned by send_message."
},
"jump_url": {
"type": [
"string",
"null"
],
"description": "Provider data field jump_url returned by send_message."
},
"thread_id": {
"type": [
"string",
"null"
],
"description": "Provider data field thread_id returned by send_message."
},
"channel_id": {
"type": [
"string",
"null"
],
"description": "Provider data field channel_id returned by send_message."
},
"message_id": {
"type": [
"string",
"null"
],
"description": "Provider data field message_id returned by send_message."
},
"attachments": {
"type": "array",
"items": {},
"description": "Provider data field attachments returned by send_message."
},
"diagnostics": {
"type": [
"object",
"null"
],
"description": "Provider data field diagnostics returned by send_message.",
"additionalProperties": true
},
"planned_parts": {
"type": [
"integer",
"null"
],
"description": "Provider data field planned_parts returned by send_message."
},
"sent_message_ids": {
"type": "array",
"items": {},
"description": "Provider data field sent_message_ids returned by send_message."
}
},
"description": "message/channel/thread IDs, jump URL, attachment metadata, and a safe delivery plan",
"additionalProperties": true
},
"meta": {
"type": "object",
"required": [
"duration_ms",
"rate_limit",
"warnings"
],
"properties": {
"guild_id": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"thread_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"rate_limit": {
"type": "object",
"additionalProperties": true
},
"request_id": {
"type": "string"
},
"duration_ms": {
"type": "integer",
"minimum": 0
}
},
"description": "Safe execution metadata containing no credentials or raw headers.",
"additionalProperties": true
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error",
"meta"
],
"properties": {
"ok": {
"const": false
},
"meta": {
"type": "object",
"required": [
"duration_ms",
"rate_limit",
"warnings"
],
"properties": {
"guild_id": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"thread_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"rate_limit": {
"type": "object",
"additionalProperties": true
},
"request_id": {
"type": "string"
},
"duration_ms": {
"type": "integer",
"minimum": 0
}
},
"description": "Safe execution metadata containing no credentials or raw headers.",
"additionalProperties": true
},
"error": {
"type": "object",
"required": [
"type",
"message"
],
"properties": {
"type": {
"type": "string"
},
"message": {
"type": "string"
},
"diagnostics": {
"type": "object",
"additionalProperties": true
},
"required_perms": {
"type": "array",
"items": {
"type": "string"
}
},
"discord_error_code": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"title": "Discord MCP provider result",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Normalized success or semantic-error response; ok=false is a failed call."
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "discord-send-message-example",
"method": "tools/call",
"params": {
"name": "discord.send_message",
"arguments": {
"channel_id": "123456789",
"message": "Release 2.7 is now live.",
"embed_title": "Release Update",
"embed_description": "Patch notes are in #announcements"
}
}
}'

Example Responses

{
"ok": true,
"message_id": "1122334455"
}