send_player_message
Send a chat message directly to a player using their name or unique ID.
Instructions
Sends a chat message to a given player
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | The name or unique id of the player | |
| message | Yes | The chat message to send |
Implementation Reference
- src/cloudnet_mcp/server.py:125-136 (registration)Registration of the 'send_player_message' tool with its name, description, and input schema (identifier and message properties).
types.Tool( name="send_player_message", description="Sends a chat message to a given player", inputSchema={ "type": "object", "properties": { "identifier": {"type": "string", "description": "The name or unique id of the player"}, "message": {"type": "string", "description": "The chat message to send"} }, "required": ["identifier", "message"], }, ), - src/cloudnet_mcp/server.py:199-203 (handler)Handler implementation for 'send_player_message': extracts identifier and message from arguments, makes a POST request to CloudNet's sendChat API endpoint, and returns the result as text.
elif name == "send_player_message": identifier = arguments.get("identifier") msg = arguments.get("message") data = await client.request("POST", f"player/online/{identifier}/sendChat", json={"chatMessage": msg}) return [types.TextContent(type="text", text=str(data))] - src/cloudnet_mcp/server.py:128-135 (schema)Input schema for 'send_player_message': requires 'identifier' (player name or UUID) and 'message' (chat message to send).
inputSchema={ "type": "object", "properties": { "identifier": {"type": "string", "description": "The name or unique id of the player"}, "message": {"type": "string", "description": "The chat message to send"} }, "required": ["identifier", "message"], },