Skip to main content
Glama

Get Inventory

steam_getInventory
Read-only

Read a player's Steam Inventory items to verify that an inventory grant landed or inspect owned items. Requires a publisher key with Economy permissions and an allowlisted server IP.

Instructions

Read a player's Steam Inventory items for your app, for example to confirm a steam_grantInventoryItem landed. Requires a publisher key with Economy permissions, with the server IP allowlisted.

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": {
      "steamid": "<steamid>",
      "appid": "<appid>"
    },
    "name": "steam_getInventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
appidYesYour app's ID
steamidYesThe player: a 17-digit Steam64 ID, a profile URL (steamcommunity.com/profiles/... or /id/...), a vanity name, or a SteamID2/SteamID3 (STEAM_0:1:123, [U:1:246])

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint, openWorldHint), and the description adds real operational context beyond them: a publisher key with Economy permissions and server IP allowlisting are prerequisites the agent or user must satisfy. It stops short of describing response shape, size, or pagination behavior for potentially large inventories.

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, front-loaded with the action, then the use case, then the access prerequisites. No filler and nothing an agent must skim past to find the operative information.

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 two-parameter read tool with full schema coverage and read-only annotations, the definition covers identity, purpose, and access requirements. With no output schema, it could have said what the returned item entries look like, which is the only meaningful omission.

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%, with appid and steamid fully documented including the accepted Steam64/URL/vanity/SteamID2-3 formats. The description only echoes 'a player' and 'your app', adding no syntax, defaults, or format detail beyond the schema, so the baseline 3 is correct.

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 ('Read a player's Steam Inventory items') scoped to the caller's app, which separates it from generic player tools like steam_getOwnedGames or steam_getPlayerSummary. It does not explicitly name a sibling it is not, but the resource is narrow enough to be unambiguous.

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?

Gives one concrete scenario ('for example to confirm a steam_grantInventoryItem landed'), which is genuinely useful context. However, there is no explicit when-not-to-use guidance or routing away from adjacent player-data tools, so the agent must infer the boundary.

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