omni_retail_replenishment_lead_time_eoq
Calculate the optimal economic order quantity and total annual inventory cost from demand, order cost, and holding cost to minimize replenishment costs and set order cycles.
Instructions
Economic Order Quantity (EOQ) & Total Cost of Inventory Calculator. Calculate the mathematically optimal Economic Order Quantity (EOQ) that minimizes the sum of inventory ordering costs and holding carrying costs. Discipline: ECOMMERCE. Governing mathematical model / formula: EOQ = √[(2 · D · S) / H] | Total Cost = (D / Q) · S + (Q / 2) · H.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of economic_order_quantity_eoq (Economic Order Quantity (EOQ)), total_annual_inventory_cost (Minimized Total Annual Inventory Cost), optimal_orders_per_year (Optimal Orders Per Year), order_cycle_days (Optimal Order Interval) using annual_unit_demand_d (Annual Unit Demand (Units / Year) in units), fixed_order_cost_s (Fixed Cost Per Purchase Order (S) in $), annual_unit_holding_cost_h (Annual Holding Cost Per Unit (H) in $/unit/yr). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Economic Order Quantity (EOQ) & Total Cost of Inventory Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "retail-replenishment-lead-time-eoq"
category (string): "ecommerce"
name (string): "Economic Order Quantity (EOQ) & Total Cost of Inventory Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.economic_order_quantity_eoq (Economic Order Quantity (EOQ)): Formatted display string (e.g. '1,000 Units / Order')
metrics.total_annual_inventory_cost (Minimized Total Annual Inventory Cost): Formatted display string (e.g. '$3,600 / year')
metrics.optimal_orders_per_year (Optimal Orders Per Year): Formatted display string (e.g. '12 Orders / Year')
metrics.order_cycle_days (Optimal Order Interval): Formatted display string (e.g. 'Every 30.4 Days')
execution_time_ms (number): Latency in milliseconds.
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": "omni_retail_replenishment_lead_time_eoq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixed_order_cost_s | No | Fixed Cost Per Purchase Order (S) ($). Administrative PO processing, wire transfer fees, and receiving labor. Default: 150. Min: 10. Max: 5000. | |
| annual_unit_demand_d | No | Annual Unit Demand (Units / Year) (units). Total quantity of units sold over a 12-month period (D). Default: 12000. Min: 100. Max: 1000000. | |
| annual_unit_holding_cost_h | No | Annual Holding Cost Per Unit (H) ($/unit/yr). Annual cost to hold one unit in warehouse (storage + interest + insurance). Default: 3.6. Min: 0.2. Max: 100. |