Skip to main content
Glama

Get inventory item

get_inventory_item
Read-onlyIdempotent

One inventory item by SKU. quantity is the total; stock_by_location is how many are at each of its places, and unplaced_quantity how many aren't at a set place. labels_url: its printable QR labels, no sign-in, 24h (&format=pdf, &copies=N up to 30; no sku= for all items).

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": {
      "sku": "<sku>"
    },
    "name": "get_inventory_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuYes
fieldsNoFields to return. Default: sku, name, description, quantity, unit, price, cost, category, low_stock_threshold, location, images, created_at, updated_at, stock_by_location, unplaced_quantity, lead_time_days, safety_days, supplier_name, supplier_email, labels_url.
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / fields / description
      Previous value: -"Fields to return. Default: sku, name, description, quantity, unit, price, cost, category, low_stock_threshold, location, images, created_at, updated_at, stock_by_location, unplaced_quantity, lead_time_days, safety_days, supplier_name, supplier_email."New value: +"Fields to return. Default: sku, name, description, quantity, unit, price, cost, category, low_stock_threshold, location, images, created_at, updated_at, stock_by_location, unplaced_quantity, lead_time_days, safety_days, supplier_name, supplier_email, labels_url."
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "sku",
      -  "name",
      -  "description",
      -  "quantity",
      -  "unit",
      -  "price",
      -  "cost",
      -  "category",
      -  "low_stock_threshold",
      -  "location",
      -  "images",
      -  "created_at",
      -  "updated_at",
      -  "stock_by_location",
      -  "unplaced_quantity",
      -  "lead_time_days",
      -  "safety_days",
      -  "supplier_name",
      -  "supplier_email"
      -]New value: +[
      +  "sku",
      +  "name",
      +  "description",
      +  "quantity",
      +  "unit",
      +  "price",
      +  "cost",
      +  "category",
      +  "low_stock_threshold",
      +  "location",
      +  "images",
      +  "created_at",
      +  "updated_at",
      +  "stock_by_location",
      +  "unplaced_quantity",
      +  "lead_time_days",
      +  "safety_days",
      +  "supplier_name",
      +  "supplier_email",
      +  "labels_url"
      +]
  2. Changed4 schema fields changed
    • changedInput schema / properties / fields / description
      Previous value: -"Which fields to return. Leave out for the usual ones: sku, name, description, quantity, unit, price, cost, category, low_stock_threshold, location, images, created_at, updated_at, stock_by_location, unplaced_quantity."New value: +"Fields to return. Default: sku, name, description, quantity, unit, price, cost, category, low_stock_threshold, location, images, created_at, updated_at, stock_by_location, unplaced_quantity, lead_time_days, safety_days, supplier_name, supplier_email."
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "sku",
      -  "name",
      -  "description",
      -  "quantity",
      -  "unit",
      -  "price",
      -  "cost",
      -  "category",
      -  "low_stock_threshold",
      -  "location",
      -  "images",
      -  "created_at",
      -  "updated_at",
      -  "stock_by_location",
      -  "unplaced_quantity"
      -]New value: +[
      +  "sku",
      +  "name",
      +  "description",
      +  "quantity",
      +  "unit",
      +  "price",
      +  "cost",
      +  "category",
      +  "low_stock_threshold",
      +  "location",
      +  "images",
      +  "created_at",
      +  "updated_at",
      +  "stock_by_location",
      +  "unplaced_quantity",
      +  "lead_time_days",
      +  "safety_days",
      +  "supplier_name",
      +  "supplier_email"
      +]
    • removedInput schema / properties / project_id / description
      Removed value: -"Workspace to work in (from list_projects). Leave out for the default one."
    • removedInput schema / properties / sku / description
      Removed value: -"The item's SKU."
  3. Changed2 schema fields changed
    • changedInput schema / properties / fields / description
      Previous value: -"Which fields to return. Leave out for the usual ones: sku, name, description, quantity, unit, price, cost, category, low_stock_threshold, location, images, created_at, updated_at."New value: +"Which fields to return. Leave out for the usual ones: sku, name, description, quantity, unit, price, cost, category, low_stock_threshold, location, images, created_at, updated_at, stock_by_location, unplaced_quantity."
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "sku",
      -  "name",
      -  "description",
      -  "quantity",
      -  "unit",
      -  "price",
      -  "cost",
      -  "category",
      -  "low_stock_threshold",
      -  "location",
      -  "images",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "sku",
      +  "name",
      +  "description",
      +  "quantity",
      +  "unit",
      +  "price",
      +  "cost",
      +  "category",
      +  "low_stock_threshold",
      +  "location",
      +  "images",
      +  "created_at",
      +  "updated_at",
      +  "stock_by_location",
      +  "unplaced_quantity"
      +]
  4. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: it disambiguates quantity vs stock_by_location vs unplaced_quantity and documents labels_url behavior (no sign-in required, 24h validity, &format=pdf, &copies up to 30) — operational context an agent cannot infer from annotations.

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?

Front-loaded with the core purpose, then dense field-semantics notes in two sentences with no filler. The parenthetical label-URL syntax is telegraphic but each clause carries information; nothing is wasted.

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

Completeness3/5

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

With no output schema, the description usefully explains the most confusing return fields and the labels URL. However, for a 3-parameter tool it leaves gaps: what project_id scopes, whether a missing SKU errors or returns empty, and any SKU-matching rules.

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 only 33%: only `fields` is documented, while `sku` and `project_id` carry no meaning in either schema or description. The description partially compensates by explaining several returnable fields (quantity, stock_by_location, unplaced_quantity, labels_url), which helps an agent choose `fields` values, but sku format and project_id scope remain undefined.

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 its lookup key: "One inventory item by SKU." That phrasing cleanly separates it from list-style siblings such as list_inventory or get_inventory_overview, though it never names them explicitly.

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 "by SKU" and by the hint that omitting sku= from the labels URL returns all items, but there is no explicit when-to-use guidance versus list_inventory, get_inventory_overview, or audit_stock, and no prerequisites or failure conditions stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.