Skip to main content
Glama
zeeweebee

Minecraft MCP Server

by zeeweebee

look-at

Directs a Minecraft bot to face specific coordinates in the game world. Use this tool to orient the character toward a target location for navigation, building, or interaction.

Instructions

Make the bot look at a specific position

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX coordinate
yYesY coordinate
zYesZ coordinate

Implementation Reference

  • The handler function for the 'look-at' tool. It takes x, y, z coordinates and uses the mineflayer bot's lookAt method to direct the bot's gaze to that position, returning a success message or error.
    async ({ x, y, z }): Promise<McpResponse> => {
      try {
        await bot.lookAt(new Vec3(x, y, z), true);
    
        return createResponse(`Looking at position (${x}, ${y}, ${z})`);
      } catch (error) {
        return createErrorResponse(error as Error);
      }
    }
  • Zod schema defining the input parameters for the 'look-at' tool: numeric x, y, z coordinates.
    {
      x: z.number().describe("X coordinate"),
      y: z.number().describe("Y coordinate"),
      z: z.number().describe("Z coordinate"),
    },
  • src/bot.ts:195-212 (registration)
    The registration of the 'look-at' tool using McpServer's tool method within the registerPositionTools function, including name, description, schema, and handler.
    server.tool(
      "look-at",
      "Make the bot look at a specific position",
      {
        x: z.number().describe("X coordinate"),
        y: z.number().describe("Y coordinate"),
        z: z.number().describe("Z coordinate"),
      },
      async ({ x, y, z }): Promise<McpResponse> => {
        try {
          await bot.lookAt(new Vec3(x, y, z), true);
    
          return createResponse(`Looking at position (${x}, ${y}, ${z})`);
        } catch (error) {
          return createErrorResponse(error as Error);
        }
      }
    );

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description must bear the full burden. It only says 'make the bot look at a specific position' without disclosing whether the bot's body rotates, whether the rotation is instant, whether any validation is performed, or any prerequisites. This is a minimal statement with no behavioral depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one short sentence of eight words. It is front-loaded and contains no extraneous information, earning a perfect score for conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with three numeric parameters and no output schema, the description is minimally adequate, but it does not clarify the effect (e.g., head vs body rotation), how it differs from 'look-around', or any constraints. Given its simplicity, it reaches a middle score.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides descriptions for all three parameters (X, Y, Z coordinates), so coverage is 100%. The description adds no extra detail about units, coordinate system, or whether the position is absolute or relative. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('look at') and the target ('a specific position'), which is distinct from moving or interacting. However, it does not explicitly differentiate from the sibling 'look-around' tool, so it is clear but not fully specified.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. It does not mention conditions like aiming, looking before interacting, or that other tools handle movement. No exclusions or alternatives are referenced.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.