omni_economic_order_quantity
Calculate optimal inventory order quantity, annual ordering and holding costs, and safety stock reorder point from demand, order cost, holding cost, and lead time inputs.
Instructions
Economic Order Quantity (EOQ) & Reorder Point Calculator. Calculate optimal inventory order batch size (EOQ), annual carrying costs, ordering costs, and safety stock reorder point. Discipline: FINANCE. Governing mathematical model / formula: EOQ = √[(2 · Demand · Order Cost) / Holding Cost per Unit].
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of eoq_units (Optimal Order Quantity (EOQ)), reorder_point (Reorder Trigger Point (ROP)), orders_per_year (Optimal Orders per Year), total_inventory_cost (Total Minimum Annual Inventory Cost) using annual_demand (Annual Unit Demand (D) in units/yr), ordering_cost (Fixed Cost per Order (S)), holding_cost (Annual Holding Cost per Unit (H)), lead_time_days (Supplier Lead Time (Days) in days). 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) & Reorder Point 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): "economic-order-quantity"
category (string): "finance"
name (string): "Economic Order Quantity (EOQ) & Reorder Point Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.eoq_units (Optimal Order Quantity (EOQ)): Formatted display string (e.g. '849 units')
metrics.reorder_point (Reorder Trigger Point (ROP)): Formatted display string (e.g. '460 units')
metrics.orders_per_year (Optimal Orders per Year): Formatted display string (e.g. '14.1 orders / yr')
metrics.total_inventory_cost (Total Minimum Annual Inventory Cost): Formatted display string (e.g. '$2,121.32 / yr')
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_economic_order_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holding_cost | No | Annual Holding Cost per Unit (H). Warehousing, insurance, and inventory capital cost. Default: 2.5. Min: 0.1. Max: 500. | |
| annual_demand | No | Annual Unit Demand (D) (units/yr). Total units sold or consumed per year. Default: 12000. Min: 100. Max: 10000000. | |
| ordering_cost | No | Fixed Cost per Order (S). Setup, freight, and purchase order administration. Default: 75. Min: 5. Max: 5000. | |
| lead_time_days | No | Supplier Lead Time (Days) (days). Days from purchase order to delivery. Default: 14. Min: 1. Max: 180. |