Admin Create Or Update User
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
destructive - Catalog version:
2026-07-12.1 - Descriptor hash:
f6ce89cc1901d0f5cbaffe3848785740d3bc3c60425cd9a1eb8349ea8fef4f41
Create or update a Synapse user. Requires destructive confirmation because it can change account access.
Request Body
{
"jsonrpc": "2.0",
"id": "wave-wave-admin-create-or-update-user-example",
"method": "tools/call",
"params": {
"name": "wave.wave_admin_create_or_update_user",
"arguments": {
"userId": "userId_123",
"confirm": false,
"confirm_phrase": "confirm_phrase_example",
"admin": false,
"locked": false,
"password": "password_example",
"avatar_url": "https://example.com/resource",
"deactivated": false,
"displayname": "displayname_example"
}
}
}
Arguments Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"userId",
"confirm",
"confirm_phrase"
],
"properties": {
"admin": {
"type": "boolean",
"description": "Whether the account should have Synapse administrator privileges."
},
"locked": {
"type": "boolean",
"description": "Whether interactive login should be locked."
},
"userId": {
"type": "string",
"description": "Full Matrix user ID to create or update."
},
"confirm": {
"type": "boolean",
"default": false,
"description": "Must be true to authorize the account change."
},
"password": {
"type": "string",
"description": "Optional replacement password; treat as sensitive input."
},
"avatar_url": {
"type": "string",
"description": "Optional Matrix content URI for the avatar."
},
"deactivated": {
"type": "boolean",
"description": "Whether the account should be deactivated."
},
"displayname": {
"type": "string",
"description": "Optional Matrix display name."
},
"confirm_phrase": {
"type": "string",
"default": "",
"description": "Must exactly equal \"WAVE ADMIN CONFIRM\" to authorize the account change."
}
},
"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
- Node.js
- Python
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-create-or-update-user-example",
"method": "tools/call",
"params": {
"name": "wave.wave_admin_create_or_update_user",
"arguments": {
"userId": "userId_123",
"confirm": false,
"confirm_phrase": "confirm_phrase_example",
"admin": false,
"locked": false,
"password": "password_example",
"avatar_url": "https://example.com/resource",
"deactivated": false,
"displayname": "displayname_example"
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "wave-wave-admin-create-or-update-user-example",
"method": "tools/call",
"params": {
"name": "wave.wave_admin_create_or_update_user",
"arguments": {
"userId": "userId_123",
"confirm": false,
"confirm_phrase": "confirm_phrase_example",
"admin": false,
"locked": false,
"password": "password_example",
"avatar_url": "https://example.com/resource",
"deactivated": false,
"displayname": "displayname_example"
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "wave-wave-admin-create-or-update-user-example",
"method": "tools/call",
"params": {
"name": "wave.wave_admin_create_or_update_user",
"arguments": {
"userId": "userId_123",
"confirm": false,
"confirm_phrase": "confirm_phrase_example",
"admin": false,
"locked": false,
"password": "password_example",
"avatar_url": "https://example.com/resource",
"deactivated": false,
"displayname": "displayname_example"
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool wave.wave_admin_create_or_update_user executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}