Stock Locations
get_stock_locationsWhere 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
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Item SKU (matched first, case-insensitive). | |
| upc | No | Item UPC/barcode, used when SKU is absent or unmatched. | |
| clientId | No | Optional client id (GUID) for operator (unpinned) credentials on 3PL tenants. | |
| warehouseId | No | Optional warehouse id (GUID) to narrow the result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | ||
| itemSku | No | ||
| itemName | No | ||
| locations | No | ||
| warehouses | No | ||
| trackingType | No | ||
| defaultLocations | No |