Skip to main content
Glama

set_blocks

Place or remove Minecraft blocks in order using block-state strings, with player-like placement or /setblock behavior and per-entry error reporting.

Instructions

Place or remove blocks, in order. Each block is a Minecraft block-state string, e.g. "stone", "repeater[out=east,delay=2]", "redstone_wall_torch[facing=north]", "lever[face=wall,facing=west]", "air" (= break). mode "place" (default) behaves like a player: support is required (dust/torches/repeaters need a block under them, place supports first) and the usual block updates fire. mode "setblock" behaves like /setblock. Errors are reported per entry; later entries still run.

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": {
      "blocks": "<blocks>"
    },
    "name": "set_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
blocksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses ordering semantics, that block updates fire in place mode, that support blocks must be placed first, that "air" breaks blocks, and that errors are per-entry while later entries still execute. Gaps remain around permissions, whether breaking is irreversible, and what the per-entry error response looks like, but the behavioral disclosure is well above average for an unannotated mutation tool.

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?

Three sentences, front-loaded with the core action, then mode semantics, then error behavior. The inline examples do real work and nothing is repeated from the schema's structural fields. Dense without being wasteful.

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?

For a 2-parameter, no-output-schema, no-annotation mutation tool, the description covers the operation, both modes, ordering, error handling, and input syntax. The remaining unknowns (return payload, permission requirements, the 5000-entry cap which lives in the schema) are minor enough that an agent could invoke this correctly.

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 description coverage is 0%, so the description has to compensate, and it does: it explains that each `blocks` entry is a Minecraft block-state string, provides four concrete example formats including bracketed state syntax, defines "air" as break, and describes both `mode` enum values with their semantics. Only the coordinate fields go unexplained, which is a minor omission for x/y/z integers.

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 opening sentence gives a specific verb and resource ("Place or remove blocks, in order") and the mode discussion clarifies that this is a player-like placement engine versus a /setblock-style write. What it doesn't do is name or differentiate from the obvious sibling `fill`, so an agent choosing between bulk region fill and block-list placement gets no explicit routing.

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

Usage Guidelines4/5

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

It gives concrete conditions for choosing between the two modes: "place" acts like a player and requires support blocks, "setblock" acts like the command. That is real when-to-use guidance rather than filler. It stops short of saying when to use a different tool (e.g. `fill` for cuboids, `clear_world` for removal at scale).

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