Forthcast Inventory

v1.1.0
io.forthcast/inventory Checked 1 day ago Published 11 days ago

Reorder points, order quantities, demand forecasts and stock health, from your numbers or Shopify.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_inventory_overview Get inventory overview

Use this when the merchant asks for a broad inventory health check, an executive summary, their urgent/excess/no-demand counts, inventory valuation, or current PO workload. Requires a connected Forthcast store; the assistant will prompt to sign in.

get_reorder_recommendations Get reorder recommendations

Use this when the merchant asks what to reorder, how much to buy, or which critical/warning items need action. Quantities reuse Forthcast's live lead-time, MOQ, case-pack, open-PO, location, and supplier minimum-order-value logic; this tool does not create a PO. Requires a connected Forthcast store; the assistant will prompt to sign in.

ParameterTypeDescription
limitintegerMaximum recommendations to return.
prioritystringReturn order-now items, plan-ahead items, or both.
supplierOptional case-insensitive supplier name filter.

find_inventory_items Find inventory items

Use this when the merchant wants a bounded list of their items filtered by urgency, assigned supplier, or Shopify vendor, such as all excess items or a supplier's critical SKUs. Requires a connected Forthcast store; the assistant will prompt to sign in.

ParameterTypeDescription
limitintegerMaximum items to return.
supplierOptional case-insensitive assigned supplier name.
urgencyOptional Forthcast urgency bucket.
vendorOptional case-insensitive Shopify vendor or brand.

get_inventory_item Get inventory item

Use this when the merchant names an exact SKU and needs its live stock, forecast demand, days of supply, reorder point, suggested quantity, supplier, or open-PO coverage. Requires a connected Forthcast store; the assistant will prompt to sign in.

ParameterTypeDescription
sku *stringExact merchant SKU code.

list_purchase_orders List purchase orders

Use this when the merchant asks what is ordered, drafted, open, partially received, received, cancelled, overdue, expected, or associated with a named supplier. Results are grouped by PO; this tool does not approve, receive, cancel, or otherwise modify an order. Requires a connected Forthcast store; the assistant will prompt to sign in.

ParameterTypeDescription
limitintegerMaximum grouped purchase orders to return.
statusOptional exact purchase-order status.
supplierOptional case-insensitive supplier name filter.

get_supplier_performance Get supplier performance

Use this when the merchant asks how suppliers are performing or wants rolling 24-month on-time rate, fill rate, actual versus promised lead time, spend, or invoice price accuracy, plus current open and overdue purchase-order counts. Requires a connected Forthcast store; the assistant will prompt to sign in.

ParameterTypeDescription
limitintegerMaximum suppliers to return.
supplierOptional case-insensitive supplier name filter.

calculate_reorder_point Calculate reorder point

Use this when someone asks how much safety stock to hold or at what stock level to reorder a product. Give a daily demand history (best) or an average daily demand with its variability, plus the supplier lead time and a service level. Returns safety stock, lead-time demand and the reorder point with Forthcast's formula and assumptions. Works without a connected store.

ParameterTypeDescription
lead_time_days *integerSupplier lead time in days.
average_daily_demandAverage units sold per day, if no daily history.
daily_demandDaily units sold, oldest first, 14 to 365 values.
demand_std_dailyStandard deviation of daily demand; assumed sqrt(average) when omitted.
service_levelnumberTarget in-stock probability, 0.50 to 0.99 (95 also accepted).

calculate_order_quantity Calculate order quantity

Use this when someone asks how many units to order, given demand, lead time, stock on hand and on order, and supplier rules such as MOQ, case pack or a minimum order value. Sizes the line the way Forthcast sizes a purchase-order line and lists every rule that changed the quantity. Works without a connected store.

ParameterTypeDescription
lead_time_days *integerSupplier lead time in days.
on_hand *numberUnits available now.
average_daily_demandAverage units sold per day, if no daily history.
case_packUnits per case; quantity is rounded up to whole cases.
cover_days_targetOptional explicit days of cover to buy instead of the default weeks-of-supply target.
daily_demandDaily units sold, oldest first, 14 to 365 values.
demand_std_dailyStandard deviation of daily demand, if known.
min_order_valueSupplier minimum order value in currency; needs unit_cost.
moqSupplier minimum order quantity for this item.
on_ordernumberUnits already on open purchase orders.
service_levelnumberTarget in-stock probability, 0.50 to 0.99.
unit_costPurchase cost per unit.

forecast_demand_series Forecast demand series

Use this when someone pastes past sales numbers and asks what to expect next month, next quarter or next season. Takes 3 to 365 monthly, weekly or daily totals (oldest first) and returns the next periods with an 80 percent range, the model used (Holt-Winters seasonal, damped trend, Croston for intermittent demand, or moving average) and why. Works without a connected store.

ParameterTypeDescription
sales *arrayPast sales totals per period, oldest first.
horizonintegerPeriods to forecast: up to 12 monthly, 26 weekly, 90 daily.
periodstringGranularity of the sales list.

score_inventory_health Score inventory health

Use this when someone shares a list or CSV of products with stock and sales rates and asks which need reordering, which are overstocked, or how healthy the inventory is. Up to 500 rows. Applies Forthcast's urgency bands (Order now, Plan ahead, On track, Excess, No demand), reorder points, suggested quantities and inventory value. Works without a connected store.

ParameterTypeDescription
items *arrayProducts to score.
default_lead_time_daysintegerLead time for rows that give none.
service_levelnumberTarget in-stock probability, 0.50 to 0.99.

explain_inventory_metric Explain inventory metric

Use this when someone asks what an inventory planning term means or how Forthcast calculates it: safety stock, reorder point, days of cover, urgency bands, service level, ABC class, EOQ, order quantity, fill rate, on-time rate, lead time, intermittent demand. Works without a connected store.

ParameterTypeDescription
metric *stringMetric name, for example 'reorder point' or 'days of cover'.