Skip to main content
Glama
Minecraft MCP Server

Minecraft MCP Server

Get Inventory

getInventory
Read-onlyIdempotent

Retrieve the full inventory for a Minecraft entity UUID or player name, including hotbar and backpack slots plus used-slot counts, to inspect carried items and empty slots.

Instructions

Get the full inventory of an entity or player: the 9 hotbar slots and the 27 backpack slots, plus used-slot counts. Empty slots are null. The target is an entity UUID or a player name.

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

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
entityYes
hotbarYes
inventoryYes
usedSlotsYes
hotbarUsedYes
totalSlotsYes
inventoryUsedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral detail beyond that: the exact slot layout returned, that empty slots come back as null, and that used-slot counts are included — useful for interpreting results even though an output schema exists.

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?

Two sentences, both front-loaded with the most important information (what is returned, then what the target may be). No filler or redundant restatement of the tool name.

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?

With annotations covering the safety profile, an output schema covering return values, and a single fully-described parameter, the description supplies everything an agent needs to call it correctly. Only minor gaps remain, such as behavior when the target entity or player does not exist.

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 description coverage is 100% and the single parameter is fully documented in the schema, so the baseline is 3. The description restates that the target is an entity UUID or player name but adds nothing the schema lacks, and it omits the schema's case-insensitivity note for player names.

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 names a specific verb and resource ("Get the full inventory") and pins down the scope precisely: 9 hotbar slots, 27 backpack slots, plus used-slot counts. It also states the accepted target types (entity UUID or player name), so an agent can distinguish it from setInventory/clearInventory/swapInventorySlots without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the read-only phrasing and the target-type note, which tells the agent it can pass either an entity UUID or a player name. However, there is no explicit when-to-use/when-not guidance and no reference to a sibling tool for the write-side operations.

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