Skip to main content
Glama

send-chat

Send chat messages in Minecraft to communicate with players or execute commands through the MCP server.

Instructions

Send a chat message in-game

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesMessage to send in chat

Implementation Reference

  • The handler function that executes the tool logic: retrieves the bot and calls bot.chat(message), then returns a response.
    async ({ message }) => {
      const bot = getBot();
      bot.chat(message);
      return factory.createResponse(`Sent message: "${message}"`);
    }
  • Input schema definition using Zod for the 'message' parameter.
    {
      message: z.string().describe("Message to send in chat")
    },
  • Registration of the 'send-chat' tool using factory.registerTool, including name, description, schema, and inline handler.
    factory.registerTool(
      "send-chat",
      "Send a chat message in-game",
      {
        message: z.string().describe("Message to send in chat")
      },
      async ({ message }) => {
        const bot = getBot();
        bot.chat(message);
        return factory.createResponse(`Sent message: "${message}"`);
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuniko-software/minecraft-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server