Skip to main content
Glama
Minecraft MCP Server

Minecraft MCP Server

Get Blocks In Area

getBlocksInArea
Read-onlyIdempotent

Lists placed non-air blocks inside an inclusive 3D area in a chosen dimension, with optional block-type filtering and pagination for inspecting builds.

Instructions

List placed (non-air) blocks inside an inclusive box in one dimension, sorted by x, y and z. Corners may be supplied in any order. An optional blockType filter matches the block id and, when states are supplied, the exact state map. Results are paginated with limit and offset. Unmodified coordinates are air and are not listed.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "getBlocksInArea"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
limitNoMaximum number of matching blocks to return (1-10000, default 1000)
offsetNoNumber of matching blocks to skip (default 0)
blockTypeNoOptional block filter, such as "minecraft:oak_stairs" or "oak_stairs[facing=south]"
dimensionNoDimension: "overworld" (default), "the_nether" or "the_end"overworld

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
limitYes
totalYes
blocksYes
offsetYes
hasMoreYes
returnedYes
blockTypeYes
dimensionYes
displayNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4/5.0
Behavior5/5

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

With readOnlyHint/idempotentHint already covering safety, the description adds real behavioural detail: corners accepted in any order, deterministic x/y/z sort, air blocks excluded, and the exact meaning of the blockType state match. These are non-obvious traits that materially change how results should be interpreted and paged; auth and rate-limit details are the only omissions and are outside the tool's contract.

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?

Five tight sentences, front-loaded with the core operation, then filtering, then pagination. The closing sentence ("Unmodified coordinates are air and are not listed") largely restates the parenthetical "(non-air)" already in sentence one, costing a little redundancy without bloat.

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?

Return values are covered by the output schema, and the description supplies everything else an agent needs for a 6-parameter nested-object tool: coordinate ordering freedom, filter semantics, exclusion of air, and pagination. It could go further on behaviour when a region exceeds 10000 blocks or how to page to completion, but nothing essential is missing.

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 67%, and the description fills the meaningful gaps: it explains that from/to are interchangeable corners (so no ordering constraint applies) and that blockType matches the block id and, when states are given, the exact state map. limit/offset are already well documented in the schema, so the description correctly does not repeat them.

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?

Uses a precise verb and resource ("List placed (non-air) blocks") plus a scoping clause ("inside an inclusive box in one dimension"), so an agent knows exactly what this returns versus a single-block getter like getBlock. It stops short of naming a sibling or stating the contrast explicitly, which keeps it from a 5.

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: the box semantics, sort order and pagination hint that this is the bulk/region read tool, but there is no explicit "use this instead of getBlock / getDimensionBlocks" guidance or exclusion. An agent must infer the alternative from sibling names alone.

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