Skip to main content
Glama

Remove entities

remove_entity
Destructive

Delete Minecraft entities by UUID or type without drops, optionally within a radius. Use dry-run to preview matches; bulk deletion skips players, named mobs, and tamed pets.

Instructions

Remove entities without drops: one by uuid, or many by types (dropped items, arrows, a farm's overflow), optionally within radius of x, y, z, nearest first up to max (1000 by default). Many at once never touches players and skips named mobs and tamed pets unless includeNamed. Try dryRun first and tell the user what would go.

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": "remove_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
zNo
maxNo
uuidNo
typesNoSuch as ["minecraft:item"]
worldNoWorld name or keyworld
dryRunNoOnly count
radiusNoBlocks around x, y, z
includeNamedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv5.0.0
    • changedInput schema / properties / dryRun / description
      Previous value: -"Only count what would be removed"New value: +"Only count"
    • removedInput schema / properties / includeNamed / description
      Removed value: -"Also remove named mobs and tamed pets"
    • removedInput schema / properties / max / description
      Removed value: -"Remove at most this many; the server caps it (1000 by default)"
    • changedInput schema / properties / max / maximum
      Previous value: -9007199254740991New value: +100000
    • changedInput schema / properties / types / description
      Previous value: -"Entity keys, such as [\"minecraft:item\", \"minecraft:arrow\"]"New value: +"Such as [\"minecraft:item\"]"
    • removedInput schema / properties / uuid / description
      Removed value: -"One entity"
    • addedInput schema / properties / uuid / minLength
      Added value: +1
    • changedInput schema / properties / world / description
      Previous value: -"World name, such as `world`, `world_nether`, `world_the_end`, or a key like `minecraft:the_nether`"New value: +"World name or key"
    • addedInput schema / properties / world / minLength
      Added value: +1
    • removedInput schema / properties / x / description
      Removed value: -"Center X"
    • removedInput schema / properties / y / description
      Removed value: -"Center Y"
    • removedInput schema / properties / z / description
      Removed value: -"Center Z"
  2. Changed3 schema fields changedv4.2.1
    • addedInput schema / properties / x / description
      Added value: +"Center X"
    • addedInput schema / properties / y / description
      Added value: +"Center Y"
    • addedInput schema / properties / z / description
      Added value: +"Center Z"
  3. First observedv4.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds behavior that annotations cannot: removed entities produce no drops, bulk mode never affects players, named mobs and tamed pets are skipped unless includeNamed is set, and victims are chosen nearest-first. These are exactly the safety-relevant facts an agent needs before calling a destructive tool.

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?

Two sentences, front-loaded with the verb and the mode split, and no filler. The second sentence is dense and packs several independent constraints into one clause chain, which costs a little readability but wastes nothing.

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 destructive, zero-required-parameter tool with no output schema, the definition covers modes, defaults, ordering, and safety exclusions. The main gap is return shape in non-dryRun mode and the meaning of the world parameter, which the agent has to infer from the schema alone.

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 only 40% schema description coverage across 10 parameters, the description does real work: it establishes that uuid and types are alternative modes, that radius is measured around x/y/z, that max caps nearest-first removal with a 1000 default, and it clarifies includeNamed's effect. It leaves world and the x/y/z triple unexplained, so it falls short of full compensation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ("Remove entities") and immediately enumerates the two operating modes: single-target by uuid, or bulk by types. The qualifier "without drops" and the examples of target types (dropped items, arrows, a farm's overflow) make the scope concrete and distinguishable from siblings like list_entities or spawn_entity.

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 clear usage context: pick the uuid form for one entity, the types form for bulk cleanup, and it recommends a workflow order ("Try dryRun first and tell the user what would go"). What's missing is any exclusion or named alternative, e.g. pointing to list_entities for finding uuids before removal, so the agent must infer that step.

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