Send Message
Catalog + Curated
This page is generated from the full broker catalog and enhanced with curated examples.
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",
"required": [
"channel_id",
"message"
],
"properties": {
"channel_id": {
"type": "string"
},
"message": {
"type": "string"
},
"embed_title": {
"type": "string"
},
"embed_description": {
"type": "string"
}
},
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://madpanda3d.com/lab/mad-mcps/portal/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"
}
}
}'
const response = await fetch('https://madpanda3d.com/lab/mad-mcps/portal/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"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"
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://madpanda3d.com/lab/mad-mcps/portal/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"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"
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 429 Rate Limited
{
"ok": true,
"message_id": "1122334455"
}
{
"ok": false,
"error": "rate_limited",
"retry_after_ms": 1200
}