Skip to main content
Glama

summon_entity

Summon Minecraft entities like zombies, villagers, or armor stands at specific coordinates using X, Y, Z positions and optional NBT data.

Instructions

Summon an entity at a position. Examples: 'zombie', 'skeleton', 'villager', 'item_frame', 'armor_stand'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityYesEntity ID (e.g., 'zombie', 'villager')
xYesX coordinate
yYesY coordinate
zYesZ coordinate
nbtNoOptional NBT data as JSON string

Implementation Reference

  • The handler function that constructs and executes the Minecraft RCON 'summon' command.
    async ({ entity, x, y, z: zCoord, nbt }) => {
      const cmd = nbt
        ? `summon ${entity} ${x} ${y} ${zCoord} ${nbt}`
        : `summon ${entity} ${x} ${y} ${zCoord}`;
      try {
        const response = await manager.rcon.send(cmd);
        return { content: [{ type: "text", text: response }] };
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: `Failed: ${error instanceof Error ? error.message : String(error)}`,
  • Zod schema defining the input parameters for the summon_entity tool.
    {
      entity: z.string().describe("Entity ID (e.g., 'zombie', 'villager')"),
      x: z.number().describe("X coordinate"),
      y: z.number().describe("Y coordinate"),
      z: z.number().describe("Z coordinate"),
      nbt: z
        .string()
        .optional()
        .describe("Optional NBT data as JSON string"),
    },
  • Registration of the 'summon_entity' tool in the MCP server.
    server.tool(
      "summon_entity",
      "Summon an entity at a position. Examples: 'zombie', 'skeleton', 'villager', 'item_frame', 'armor_stand'.",

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/tamo2918/Minecraft-Server-MCP'

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