Get Replenishment Settings
get_replenishment_settingsHow each item is restocked at each warehouse, and every input behind it, in one row per item x warehouse: method (build, buy, transfer or none) and why, the source (supplier, supply warehouse or primary bill of materials), the inventory policy (reorder point and quantity, pinned or auto-calculated, typed lead time and safety stock), the lead time and safety stock the reorder math actually uses with where each came from (leadTimeSource, safetyStockSource), the calculated reorder point and quantity, whether the sweep would reorder now, and missingInputs (no_policy, no_supplier, bom_not_primary, transfer_source_missing, lead_time_fallback). The same read as the item page's Replenishment view. Rows are the warehouses an item is planned at (a policy or stock there); pass sku or itemId with allWarehouses=true for every warehouse. Filter by warehouse, method, supplier, item group, missingInput (any or one value except lead_time_fallback), pinned, or a SKU/name search. Change the policy fields with set_inventory_policy, the supply route with set_warehouse_supply_route. Paged: total counts every matching row before paging (default limit 50, max 200); to read them all, call again with offset=nextOffset until hasMore is false.
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_replenishment_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Optional item SKU (or UPC) to read one item. | |
| limit | No | Page size (default 50, max 200). | |
| itemId | No | Optional item id (GUID) to read one item. | |
| method | No | Optional method: build, buy, transfer or none. | |
| offset | No | Zero-based row offset (default 0). | |
| pinned | No | Optional: true for pinned policies only, false for auto-calculated policies only. | |
| search | No | Optional case-insensitive substring matched against SKU or name. | |
| clientId | No | Optional client id (GUID) for operator (unpinned) credentials on 3PL tenants: only that client's items. Client-pinned credentials omit this. | |
| supplierId | No | Optional supplier id (GUID): bought rows restocked from that supplier. | |
| itemGroupId | No | Optional item group id (GUID). | |
| warehouseId | No | Optional warehouse id (GUID). | |
| missingInput | No | Optional: any, no_policy, no_supplier, bom_not_primary or transfer_source_missing. | |
| allWarehouses | No | With sku or itemId: true returns every warehouse, including ones the item has no policy or stock at, showing how it would be restocked there. | |
| includeDecisions | No | Whether to decide needsReorder and lookAheadDays per row (default true). Pass false when only the settings are needed: the decision reads forecasts and open supply. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| rows | No | ||
| limit | No | ||
| total | No | ||
| offset | No | ||
| hasMore | No | ||
| nextOffset | No |