Skip to main content
Glama
Minecraft MCP Server

Minecraft MCP Server

Clear Inventory

clearInventory
DestructiveIdempotent

Remove all items from an entity's or player's 9 hotbar and 27 backpack slots using a UUID or player name. Returns the cleared slot count.

Instructions

Remove every item from the 9 hotbar slots and 27 backpack slots of one entity or player. The target is an entity UUID or a player name. The cleared slot count is returned.

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": {
      "target": "<target>"
    },
    "name": "clearInventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesEntity UUID or player name (player names are case-insensitive)

Output Schema

NameRequiredDescriptionDefault
entityYes
hotbarYes
inventoryYes
usedSlotsYes
hotbarUsedYes
totalSlotsYes
clearedSlotsYes
inventoryUsedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered structurally. The description adds real value by scoping the blast radius to exactly 36 slots and clarifying the target accepts UUID or case-insensitive player name. It does not say whether removed items are dropped, destroyed, or recoverable, which matters for a destruction tool — but that gap is partly mitigated by destructiveHint.

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 short sentences, front-loaded with the destructive action and scope, then the target, then the return. No filler; the slot inventory is stated as concrete numbers rather than vague prose.

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?

A one-parameter destructive tool with full annotation and output-schema coverage; the description covers scope, target, and the returned cleared-slot count. The only meaningful omission is what happens to the removed items (dropped vs. permanently deleted).

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

Parameters3/5

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

Schema coverage is 100% and the single parameter already documents UUID/player-name and case-insensitivity. The description restates that same information without adding format examples or edge cases, so baseline 3 applies.

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?

States a specific verb and resource with unusual precision: 'Remove every item from the 9 hotbar slots and 27 backpack slots of one entity or player.' The all-slots wipe is naturally distinct from getInventory/setInventory/swapInventorySlots, though no sibling is named explicitly to confirm the boundary.

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 when-to-use or when-not-to-use guidance, no mention of alternatives such as setInventory for partial changes, and no warning or prerequisite attached to an irreversible-looking wipe. The agent must infer the appropriate context entirely from the verb.

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