Skip to main content
Glama

Measure distance

measure
Read-only

Calculate the distance in blocks between two Minecraft points: straight-line, ground-level and grid-walking paths, plus the direction from the first point to the second.

Instructions

Distance in blocks between two points: straight line, along the ground and walking on the grid, plus direction.

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": {
      "x1": "<x1>",
      "y1": "<y1>",
      "z1": "<z1>",
      "x2": "<x2>",
      "y2": "<y2>",
      "z2": "<z2>"
    },
    "name": "measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
z1Yes
z2Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/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 the safety profile is covered and the description is free to add value — which it does by disclosing that the result includes straight-line, ground-level, and grid-walking distances plus a direction, information not present in any structured field. It stops short of describing units for direction or whether altitude differences are handled separately, but for a read-only measurement it is substantively transparent.

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?

A single front-loaded sentence that names the unit (blocks), the two endpoints, and the measurement variants with no filler. Everything stated earns its place.

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 spells out the returned measurements, which is the main gap it needed to fill. However, for a six-parameter tool at zero schema coverage it leaves the agent without coordinate-system or unit conventions, which is a meaningful omission for correctly constructing the call.

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?

All six parameters (x1,y1,z1,x2,y2,z2) are required with 0% schema description coverage, and the description says nothing about coordinate ordering, units, or the coordinate system, so the agent must guess the convention. The names are somewhat self-evident as two 3D points, which keeps this above a 1, but the description does not compensate for the coverage gap.

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 uses a specific verb-in-context ('distance in blocks between two points') and enumerates the three measurement modes plus direction, so the resource and computation are unambiguous. It doesn't name or contrast any sibling (e.g., blocks, top_down_map), so the agent must infer that this is the measuring tool rather than a visualization one, keeping it below 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 Guidelines2/5

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

There is no statement of when to use this tool versus the sibling tools (blocks, four_views, top_down_map, etc.), and no prerequisites or exclusions. The only cue is the implicit 'between two points', which tells the agent nothing about choosing this over a visualization tool.

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