Skip to main content

Send Message

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEwave.wave_send_message
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.1
  • Descriptor hash: 56cd3d40dfd1803cd7e402ff045e8719ecd2d72890fdf2c28cbad75148737805

Send a message to a Wave room as the selected user or bot. In encrypted rooms the SDK encrypts before sending.

Request Body

{
"jsonrpc": "2.0",
"id": "wave-wave-send-message-example",
"method": "tools/call",
"params": {
"name": "wave.wave_send_message",
"arguments": {
"roomId": "roomId_123",
"body": "body_example",
"msgtype": "m.text",
"format": "format_example",
"actor": "user",
"formattedBody": "formattedBody_example"
}
}
}

Arguments Schema

{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"roomId",
"body",
"msgtype",
"format"
],
"properties": {
"body": {
"type": "string",
"minLength": 1,
"description": "Plain-text message body."
},
"actor": {
"enum": [
"user",
"bot"
],
"type": "string",
"description": "Wave messaging identity to use: user or bot."
},
"format": {
"type": "string",
"default": "org.matrix.custom.html",
"description": "Matrix formatted-body format identifier when formattedBody is provided."
},
"roomId": {
"type": "string",
"description": "Matrix room ID to send to."
},
"msgtype": {
"enum": [
"m.text",
"m.notice",
"m.emote"
],
"type": "string",
"default": "m.text",
"description": "Matrix message type for the outbound event."
},
"formattedBody": {
"type": "string",
"description": "Optional HTML formatted body."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the Wave MCP operation completed successfully."
},
"data": {
"anyOf": [
{},
{
"type": "null"
}
],
"description": "Tool-specific Wave, Matrix, Synapse, or local navigation result."
},
"meta": {
"type": "object",
"description": "Safe execution and actor metadata without credential values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error classification."
},
"details": {
"description": "Optional safe error context without credentials or request bodies."
},
"message": {
"type": "string",
"description": "Safe actionable error message."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Safe error details when ok is false."
}
},
"additionalProperties": false
}

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": "wave-wave-send-message-example",
"method": "tools/call",
"params": {
"name": "wave.wave_send_message",
"arguments": {
"roomId": "roomId_123",
"body": "body_example",
"msgtype": "m.text",
"format": "format_example",
"actor": "user",
"formattedBody": "formattedBody_example"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool wave.wave_send_message executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}