Skip to main content
Glama

Find blocks, biomes, or structures

locate
Read-onlyIdempotent

Find nearby blocks, biomes, or structures around a player, spawn, or coordinates on a Minecraft server. Search loaded chunks or unexplored terrain with configurable targets and radius.

Instructions

Nearest blocks, biomes, or structures first. block takes keys or tags and reads loaded chunks, 32 blocks around by default (unloadedChunks counts skipped ones). biome reaches unexplored land, 1024 around by default. structure takes keys such as stronghold or a prefix such as village, radius in chunks: keep it modest, it blocks the server thread. Without x and z, it searches around the player, or the spawn for biomes and structures. Needs players:private, or anonymous access the server allows.

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": {
      "kind": "<kind>",
      "targets": "<targets>"
    },
    "name": "locate"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNoNeeded for blocks
zNo
kindYesWhat targets name
limitNo10 by default
worldNoThe player's world, or `world`, when left out
playerNoSearch around this player instead
radiusNo
targetsYesSuch as ["minecraft:diamond_ore"], ["minecraft:cherry_grove"], or ["village"]
unexploredNoStructures nobody has found yet

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changedv5.0.0
    • changedInput schema / properties / limit / description
      Previous value: -"Results to return, nearest first; 10 by default"New value: +"10 by default"
    • changedInput schema / properties / player / description
      Previous value: -"Search around this player instead of x, y, z"New value: +"Search around this player instead"
    • removedInput schema / properties / radius / description
      Removed value: -"Blocks for blocks and biomes, chunks for structures"
    • changedInput schema / properties / radius / maximum
      Previous value: -9007199254740991New value: +100000
    • changedInput schema / properties / targets / description
      Previous value: -"Such as [\"minecraft:diamond_ore\", \"#minecraft:logs\"], [\"minecraft:cherry_grove\"], or [\"village\"]"New value: +"Such as [\"minecraft:diamond_ore\"], [\"minecraft:cherry_grove\"], or [\"village\"]"
    • changedInput schema / properties / unexplored / description
      Previous value: -"Structures only: only ones nobody has found yet"New value: +"Structures nobody has found yet"
    • changedInput schema / properties / world / description
      Previous value: -"World name; the player's world, or `world`, when left out"New value: +"The player's world, or `world`, when left out"
    • addedInput schema / properties / world / minLength
      Added value: +1
    • removedInput schema / properties / x / description
      Removed value: -"Block X of the center"
    • removedInput schema / properties / x / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / x / minimum
      Removed value: --9007199254740991
    • addedInput schema / properties / x / multipleOf
      Added value: +1
    • changedInput schema / properties / x / type
      Previous value: -"integer"New value: +"number"
    • changedInput schema / properties / y / description
      Previous value: -"Needed for blocks when x and z are given"New value: +"Needed for blocks"
    • removedInput schema / properties / y / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / y / minimum
      Removed value: --9007199254740991
    • addedInput schema / properties / y / multipleOf
      Added value: +1
    • changedInput schema / properties / y / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / z / description
      Removed value: -"Block Z of the center"
    • removedInput schema / properties / z / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / z / minimum
      Removed value: --9007199254740991
    • addedInput schema / properties / z / multipleOf
      Added value: +1
    • changedInput schema / properties / z / type
      Previous value: -"integer"New value: +"number"
  2. Changed3 schema fields changedv4.2.1
    • addedInput schema / properties / kind / description
      Added value: +"What targets name"
    • addedInput schema / properties / x / description
      Added value: +"Block X of the center"
    • addedInput schema / properties / z / description
      Added value: +"Block Z of the center"
  3. First observedv4.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses real operational traits: structure searches block the server thread, block searches only see loaded chunks, and access requires players:private or server-allowed anonymous access. That is genuine value-add. It is docked slightly because it references an `unloadedChunks` field that does not exist in the input schema, which could mislead an agent into passing an invalid argument.

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?

The result-ordering fact is front-loaded and each following sentence is scoped to one `kind`, which makes it easy to scan. The prose is telegraphic in places ('radius in chunks: keep it modest') but nothing is padding.

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 10-parameter search tool with no output schema, the description covers the decision-relevant semantics: per-kind radius behaviour, defaults, search origin, cost, and permissions. Remaining gaps are result shape/ordering detail and the meaning of `limit` and `unexplored`, which the schema partially covers but not fully.

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?

With 70% schema coverage, the description still adds meaning the schema lacks: radius units differ by kind (32 blocks for blocks, 1024 for biomes, chunks for structures), target strings may be keys, tags, or prefixes, and x/z omission changes the search origin. The phantom `unloadedChunks` mention is a defect, and the `limit`, `world`, and `unexplored` parameters are left entirely to the schema.

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 outcome ('Nearest blocks, biomes, or structures first') and then breaks the tool down by the three `kind` values, so an agent knows this is a proximity search rather than a point read. It implicitly separates itself from single-target siblings like get_block or list_chunks by emphasizing nearest-match search over a radius, but it never names those alternatives.

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?

Per-kind guidance is concrete: `block` reads loaded chunks, `biome` reaches unexplored land, `structure` accepts keys or prefixes and should keep radius modest. It also states the fallback when x/z are absent (player, or spawn for biomes/structures). What is missing is an explicit exclusion, e.g. when to prefer get_block or list_chunks instead.

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