Skip to main content

Admin Purge Room History

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

DESTRUCTIVEwave.wave_admin_purge_room_history
  • Contract tier: agent_ready
  • Risk: destructive
  • Catalog version: 2026-07-12.1
  • Descriptor hash: 8dfd6fe4d9f542eaf0c2f0f5de086ea62bb57bb39ddfb9b78dd0cf73ecf4cae7

Purge historical events from a Synapse room. Requires destructive confirmation.

Request Body

{
"jsonrpc": "2.0",
"id": "wave-wave-admin-purge-room-history-example",
"method": "tools/call",
"params": {
"name": "wave.wave_admin_purge_room_history",
"arguments": {
"roomId": "roomId_123",
"delete_local_events": false,
"confirm": false,
"confirm_phrase": "confirm_phrase_example",
"purge_up_to_ts": 1,
"purge_up_to_event_id": "purge_up_to_event_id_123"
}
}
}

Arguments Schema

{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"roomId",
"delete_local_events",
"confirm",
"confirm_phrase"
],
"properties": {
"roomId": {
"type": "string",
"description": "Full Matrix room ID whose history will be purged."
},
"confirm": {
"type": "boolean",
"default": false,
"description": "Must be true to authorize history purge."
},
"confirm_phrase": {
"type": "string",
"default": "",
"description": "Must exactly equal \"WAVE ADMIN CONFIRM\" to authorize history purge."
},
"purge_up_to_ts": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Optional Unix timestamp in milliseconds marking the purge boundary."
},
"delete_local_events": {
"type": "boolean",
"default": true,
"description": "Delete locally originated events in the purge range when true."
},
"purge_up_to_event_id": {
"type": "string",
"description": "Optional Matrix event ID marking the purge boundary."
}
},
"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-admin-purge-room-history-example",
"method": "tools/call",
"params": {
"name": "wave.wave_admin_purge_room_history",
"arguments": {
"roomId": "roomId_123",
"delete_local_events": false,
"confirm": false,
"confirm_phrase": "confirm_phrase_example",
"purge_up_to_ts": 1,
"purge_up_to_event_id": "purge_up_to_event_id_123"
}
}
}'

Example Responses

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