Skip to main content
Glama

Read player inventory

get_inventory

Retrieve a Minecraft player's inventory: hotbar, main storage, armor, offhand, and selected hotbar slot.

Instructions

Read the player's inventory: hotbar, main storage, armor, offhand contents and the currently held hotbar slot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
playerNoOnline player name (defaults to the first online player)
Behavior4/5

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

With no annotations, the description carries the burden of disclosure. It clearly states this is a read operation and specifies what is returned, including the currently held hotbar slot. It also implies non-destructive behavior via the verb 'Read'. However, it does not mention any prerequisites beyond the player being online, which is covered in the schema.

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?

The description is a single concise sentence that front-loads the main purpose and immediately lists the included components. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only tool with one optional parameter and no output schema, the description is complete. It explains exactly what inventory sections are returned and the default player behavior, making it sufficient for an agent to invoke correctly.

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% for the single optional 'player' parameter, so the schema fully documents it. The description adds value by listing the inventory contents but does not add further parameter semantics beyond the schema.

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 clearly states the tool reads the player's inventory and enumerates all included sections (hotbar, main storage, armor, offhand, held slot). This specific verb+resource distinguishes it from siblings like get_player_state or get_block_at.

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?

The description provides clear context for when to use the tool (to read inventory contents) and the default behavior of the player parameter. It does not explicitly exclude alternatives or mention when not to use it, but the scope is well-defined.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IotA-asce/minecraft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server