Get MSI Stock Status
get_msi_stock_statusGet MSI stock status for a SKU, including physical quantity, reservation offset, and salable quantity per source.
Instructions
Returns MSI physical qty, reservation offset, and salable qty per source for a SKU. Requires MSI tables. For legacy stock use find_product_by_sku.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | Product SKU. Use find_product_by_sku instead of guessing EAV table joins. | |
| profile | No | Override the MAGENTO_SQL_PROFILE env var for this call only. Use list_connection_profiles to see available names. | |
| stock_id | No | MSI stock_id (default 1 = Default Stock). | |
| magentoRoot | No | Absolute path to the Magento root (must contain app/etc/env.php). Defaults to MAGENTO_ROOT env var or auto-discovery. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rows | Yes | ||
| sampled | No | ||
| rowCount | Yes | ||
| truncated | No |