Skip to main content
Glama

Stock Locations

get_stock_locations
Read-only

Where is an item stocked? Returns each warehouse's on-hand, committed and available (warehouses: committed is units held by open sales and transfer orders, available is net of them, as list_items and the Inventory page show), the on-hand, available and picked-reserved units per warehouse location (locations, split by lot / expiry / serial for tracked items), plus the default location adjust_stock and move_stock use in each warehouse. Call this before adjust_stock, move_stock or reserve_stock to pick locations. Answer per-warehouse on-hand / committed / available questions from warehouses. A location's available is gross of open orders (they are held per warehouse, not per location) and its reserved is only units already picked, so neither is a committed figure.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_stock_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuNoItem SKU (matched first, case-insensitive).
upcNoItem UPC/barcode, used when SKU is absent or unmatched.
clientIdNoOptional client id (GUID) for operator (unpinned) credentials on 3PL tenants.
warehouseIdNoOptional warehouse id (GUID) to narrow the result.

Output Schema

NameRequiredDescriptionDefault
itemIdNo
itemSkuNo
itemNameNo
locationsNo
warehousesNo
trackingTypeNo
defaultLocationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / warehouses
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "available": {
      +        "type": "number"
      +      },
      +      "committed": {
      +        "type": "number"
      +      },
      +      "onHand": {
      +        "type": "number"
      +      },
      +      "warehouseId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "warehouseName": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish a safe read, but the description goes further with semantic caveats: warehouse committed means units held by open sales/transfer orders, location available is gross of open orders, and location reserved counts only picked units. Those traps would otherwise cause the agent to misreport committed figures.

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 question and no filler sentences, but the long parenthetical about warehouses semantics is dense and runs on. It earns its place content-wise, yet could be broken into shorter sentences for faster scanning.

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?

An output schema exists, so return values need not be explained, but the description still sketches the two result sections and their meanings, which is more than enough for a read-only lookup. The only gap is that the relationship between the four input parameters and result narrowing is left entirely to the schema.

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%, so sku, upc, clientId and warehouseId are fully documented in the schema, including matching order and fallback behavior. The description adds no parameter-level guidance beyond the schema, so the baseline 3 applies.

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?

Opens with the question it answers ('Where is an item stocked?') and names the concrete outputs: per-warehouse on-hand/committed/available, per-location units split by lot/expiry/serial, and the default location used by adjust_stock/move_stock. That level of specificity distinguishes it from list_items, which it references but does not duplicate.

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

Usage Guidelines5/5

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

Explicitly instructs the agent to call this before adjust_stock, move_stock or reserve_stock to pick locations, and routes per-warehouse questions to the 'warehouses' section. Both the when-to-use and the sibling alternatives are named.

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.

Resources