Reorder Recommendations
get_reorder_recommendationsWhat should I reorder? Returns the tenant's reorder decision (the one its reorder and transfer sweeps propose with, and the item page shows) as actionable recommendations in three buckets: purchase orders (buy from vendor, grouped-ready via defaultSupplier), manufacturing orders (make internally: manufactured items and sub-assemblies), and transfers (move stock to a 3PL/FBA node, capped at what the source warehouse can give: transferSourceWarehouseName, transferSourceShortfall). Most-critical first. By default each warehouse is decided with the look-ahead of the sweep that proposes for it (the gap to its next run, or none before a sweep owns proposals), so the answer matches the item page and the inbox (matchesReorderDecision). Pass includeForecastProjection/horizonDays only for a what-if look further ahead: items ON TRACK to breach their reorder point within horizonDays. Each bucket is paged independently by limit + offset and reports its pre-paging Total, so recommendations past the first page are reachable on large tenants. Renders the Reorder Decision Board with available stock, days on hand, suggested quantities, and sourced purchase lead times. Days on hand is available ÷ the planning rate (forecast, sales history and production pulls), the same figure the item page and get_item_stock_outlook show. Call this directly for low-stock/reorder questions; do not open onboarding or readiness first. Missing data is shown in a collapsed improvement section, and unknown coverage stays null rather than zero. A purchase recommendation an open draft PO already carries names that draft (openDraftPurchaseOrderNumbers): a draft is not on order until it is issued, so review or issue it rather than drafting the item again. withoutReorderPoint lists items with demand that NO bucket can include because they have no reorder point (hasReorderPointRow=false: no reorder-point row at that warehouse; pinned=true: set at 0 and never recalculated; otherwise a calculated reorder point still at 0; madeInHouse=true: an item built from its own bill of materials, which the daily build sweep plans once it has a row; atTransferNode=true: a warehouse supplied by transfer, whose row the transfer sweep creates), lowest days on hand first. When totalWithoutReorderPoint > 0 the buckets are not the whole answer: say how many items are left out and why, name the most urgent, and offer to set their reorder policy (set_inventory_policy). discontinued lists positions of discontinued items: they still sell but are never reordered, so they are left out of every bucket on purpose; mention them only to explain why an item is not recommended (transfers to a node still move a discontinued item's existing stock). decidedBy names, per warehouse, the Automation rule whose look-ahead decided the rows, its mode (observe/propose/autopilot) and lookAheadDays: when asked why an item does or does not need reordering, say which rule decided it and that its look-ahead is changed on that rule (update_rule), not on the item. defaultSupplierId is the supplier the item is bought from at that warehouse (the item's per-warehouse default supplier when set, else its default supplier).
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_reorder_recommendations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size per bucket (default 50, max 200). | |
| offset | No | Zero-based row offset applied within each bucket for paging (default 0). Compare against the bucket's Total to know when the last page is reached. | |
| supplierId | No | Optional vendor id (GUID). Keeps only purchase orders, and withoutReorderPoint items bought, whose default vendor it is. Manufacturing orders, transfers, and madeInHouse or atTransferNode items have no vendor, so they are listed whatever vendor is given. | |
| horizonDays | No | What-if only: forecast look-ahead in days (turns on the projection). Omit to decide with the tenant's reorder look-ahead. | |
| warehouseId | No | Optional warehouse id (GUID) to scope the sweep. | |
| includeForecastProjection | No | What-if only. true flags items projected to breach their reorder point within horizonDays; false only items already below. Omit to decide with the tenant's reorder look-ahead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| limit | No | ||
| offset | No | ||
| decidedBy | No | Per warehouse in the returned rows: the rule, mode and look-ahead the decision was made with. Omitted for a what-if look-ahead and for a client-pinned credential. | |
| transfers | No | ||
| supplierId | No | ||
| horizonDays | No | ||
| warehouseId | No | ||
| discontinued | No | ||
| purchaseOrders | No | ||
| totalTransfers | No | ||
| totalDiscontinued | No | ||
| manufacturingOrders | No | ||
| totalPurchaseOrders | No | ||
| withoutReorderPoint | No | ||
| matchesReorderDecision | No | ||
| totalManufacturingOrders | No | ||
| totalWithoutReorderPoint | No | ||
| includeForecastProjection | No |