Skip to main content
Glama
Minecraft MCP Server

Minecraft MCP Server

Set Block

setBlock
DestructiveIdempotent

Places a block at specified coordinates in a chosen dimension, supports block states, and returns the replaced block. Use it to edit persisted Minecraft worlds, with air removing blocks.

Instructions

Place a block at the given coordinates in the given dimension and return the replaced block. Block states are supported: "minecraft:oak_stairs[facing=south,half=bottom]" or "oak_stairs[facing=south]". Each dimension has its own persisted world state; setting air removes the block. blockType is a block id such as "minecraft:stone" or "stone"; see the resource lzimul://minecraft/blocks for the full list.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "x": "<x>",
      "y": "<y>",
      "z": "<z>",
      "blockType": "<blockType>"
    },
    "name": "setBlock"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX coordinate (-30000000 to 30000000)
yYesY coordinate, within the dimension height range
zYesZ coordinate (-30000000 to 30000000)
blockTypeYesBlock id with optional states, such as "minecraft:stone" or "minecraft:oak_stairs[facing=south]"
dimensionNoDimension: "overworld" (default), "the_nether" or "the_end"overworld

Output Schema

NameRequiredDescriptionDefault
xYes
yYes
zYes
blockYes
statesYes
previousYes
dimensionYes
previousStatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description still adds real behavioral context beyond them by stating the replaced block is returned (so an overwrite is recoverable) and that each dimension has its own persisted world state. It omits any failure behavior for unloaded or out-of-range coordinates, keeping it short of a 5.

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

Conciseness4/5

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

It is front-loaded with the core action and keeps to four tight sentences, each conveying a distinct fact (return value, state syntax, dimension persistence, id source). The blockType example is partially duplicated between description and schema, a small redundancy.

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

Completeness4/5

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

With an output schema present, return values need no explanation, and the description covers the write-specific behaviors an agent needs: returned replaced block, per-dimension persistence, air as removal, and where to find valid ids. Only edge cases such as coordinate-bound failures or behavior on an unloaded chunk are left unaddressed.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it documents block-state syntax with two concrete labeled examples and explains the namespace-optional id form plus the special case that blockType 'air' removes the block. Those are semantics the schema does not spell out, so it earns above baseline.

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 gives a concrete verb and resource ('Place a block at the given coordinates in the given dimension') and states the return value ('return the replaced block'). It is clearly distinct from read siblings like getBlock, though it never names fillBlocks, the obvious bulk alternative, so sibling differentiation is only implied by 'a block' being singular.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: it explains that setting air removes a block and points to the lzimul://minecraft/blocks resource for valid ids, which tells the agent how to use it. However, it never says when to pick this over fillBlocks for multiple placements, nor any prerequisite or exclusion.

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