Skip to main content

Get Room Messages

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READwave.wave_get_room_messages
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: 2026-07-12.1
  • Descriptor hash: 5a833ebb239cea6f810a788329d762dd51f968f78e9cba2f948c1e551ae8e5eb

Read recent messages from a Wave room. Encrypted events are decrypted when the MCP Matrix device has keys.

Request Body

{
"jsonrpc": "2.0",
"id": "wave-wave-get-room-messages-example",
"method": "tools/call",
"params": {
"name": "wave.wave_get_room_messages",
"arguments": {
"roomId": "roomId_123",
"direction": "b",
"from": "from_example",
"actor": "user",
"limit": 1
}
}
}

Arguments Schema

{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"roomId",
"direction"
],
"properties": {
"from": {
"type": "string",
"description": "Pagination token returned by a previous call."
},
"actor": {
"enum": [
"user",
"bot"
],
"type": "string",
"description": "Wave messaging identity to use: user or bot."
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Maximum recent events to return, capped by server configuration.",
"exclusiveMinimum": 0
},
"roomId": {
"type": "string",
"description": "Matrix room ID to read from."
},
"direction": {
"enum": [
"b",
"f"
],
"type": "string",
"default": "b",
"description": "Matrix /messages direction."
}
},
"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-get-room-messages-example",
"method": "tools/call",
"params": {
"name": "wave.wave_get_room_messages",
"arguments": {
"roomId": "roomId_123",
"direction": "b",
"from": "from_example",
"actor": "user",
"limit": 1
}
}
}'

Example Responses

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