Skip to main content
Glama

Count blocks

count_blocks
Read-only

Counts every block type in a Minecraft area, reports non-air totals and real dimensions, and lists positions matching names like lantern or torch for quick world inspection.

Instructions

COUNT the blocks in an area: how many of each type, how many are not air, and the real length, width and height of what is there. find = part of a block name, or several separated by commas (e.g. 'lantern,torch'), to list where each one is. Up to 25 million positions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "count_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
zNo
x1No
x2No
y1No
y2No
z1No
z2No
findNo
radiusNo
max_listNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral context: the 25-million-position cap, which is a real operational limit an agent must plan around, plus a statement of what the tool returns. It does not contradict the annotations.

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?

Three dense sentences with the primary action front-loaded in caps and no filler. The phrasing is slightly terse to the point of ambiguity ("to list where each one is" implies max_list without naming it), but nothing is wasted.

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?

With no output schema, the description usefully describes what comes back (type counts, non-air count, dimensions), which is the right compensation. However, for an 11-parameter tool the failure to explain how the region is defined is a significant completeness gap that the return-value summary does not offset.

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

Parameters2/5

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

Schema description coverage is 0% across 11 parameters, so the description carries the full burden and largely fails. It explains `find` well (substring match, comma-separated list, triggers per-location listing) but leaves the eight coordinate parameters and `radius` completely undefined, so an agent cannot tell whether the area is specified as a corner-pair box or a center-plus-radius region.

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 opens with a specific verb and resource ("COUNT the blocks in an area") and enumerates the return shape: per-type counts, non-air count, and real length/width/height. That is far more concrete than the title alone. It stops short of distinguishing itself from siblings like measure or blocks, which likely also report spatial dimensions.

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?

There is no explicit when-to-use guidance and no named alternative. An agent must infer from "in an area" that this is for volumetric census rather than viewing or measuring, and nothing tells it when another sibling would be the better choice.

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