# EOQ Calculator MCP

> EOQ Calculator finds your optimal inventory levels by calculating the Economic Order Quantity (EOQ) and reorder points. Stop guessing when to order or how much to stock. This MCP helps you balance ordering costs against holding costs, ensuring you minimize waste without risking stockouts.

## Overview
- **Category:** finance
- **Price:** Free
- **Tags:** eoq, inventory, optimization, supply-chain, logistics

## Description

Managing inventory means constantly balancing risk and cash flow. You need enough product on hand to keep sales going, but you don't want to tie up capital in shelves full of slow-moving goods. This MCP handles that math for you. It determines the ideal order size and tells you precisely when your stock hits a danger zone, so you never overbuy or run dry unexpectedly. Just connect it through Vinkius, and your agent can handle complex calculations previously reserved for expensive ERP systems. Instead of spending hours cross-referencing spreadsheets to find that sweet spot between ordering expenses and storage costs, you get actionable numbers instantly. It gives supply chain teams the data they need to make confident decisions about purchasing cycles.

## Tools

### analyze_cost_efficiency
It provides a detailed breakdown comparing annual costs from placing orders against yearly storage expenses.

### calculate_eoq_metrics
This tool figures out the optimal order size and how often you should place an order over the year.

### calculate_reorder_point
It determines the specific amount of stock that needs to be purchased when your current inventory hits that level.

## Prompt Examples

**Prompt:** 
```
Calculate the optimal order quantity for a product with an annual demand of 5000 units, an order cost of $50, a holding cost of 20%, and a unit price of $10.
```

**Response:** 
```
The optimal order quantity is approximately 500 units, with about 10 orders per year and an average of 36.5 days between orders.
```

**Prompt:** 
```
What is the reorder point if my annual demand is 1200 units and the lead time is 5 days?
```

**Response:** 
```
The reorder point is 16.44 units, meaning you should place a new order when your stock reaches this level to cover the daily demand of approximately 3.29 units.
```

**Prompt:** 
```
Analyze the cost efficiency for a scenario with 10000 annual demand, $100 order cost, 15% holding cost, and $5 unit price.
```

**Response:** 
```
The annual ordering cost is approximately $1,414.21 and the annual holding cost is approximately $1,414.21, demonstrating a balanced cost structure.
```

## Capabilities

### Determine optimal order size
The MCP calculates the ideal quantity for a new order based on annual demand and associated costs.

### Set precise reorder thresholds
It establishes the exact inventory level that automatically triggers the need to place a new purchase order.

### Audit cost balance
You get a detailed breakdown comparing your annual costs for placing orders against your holding costs.

## Use Cases

### Inventory for a new seasonal product line
The manager needs to know if they should order 10,000 units or 20,000 units. They use `analyze_cost_efficiency` first to understand the cost trade-offs. Then, they run `calculate_eoq_metrics` to get a mathematically optimal number, preventing them from overstocking during slow periods.

### Managing spare parts for machinery
The maintenance lead needs to know when to order critical components that have long lead times. They use `calculate_reorder_point` with the specific machine's usage data, ensuring a new part arrives before the old one fails.

### Revising annual purchasing strategy
The analyst is updating the entire department budget. They run all three tools—starting with `analyze_cost_efficiency` to set cost limits, then running `calculate_eoq_metrics`, and finally validating the minimum stock level using `calculate_reorder_point`.

### Responding to sudden demand spikes
After a viral marketing campaign, sales jump 40%. The team immediately uses the MCP to recalculate everything. They update the annual demand in `calculate_eoq_metrics` and instantly see how much their order quantity must increase.

## Benefits

- Reduces waste by finding the perfect balance between order size and storage costs using `calculate_eoq_metrics`. You only pay for what you need, when you need it.
- Prevents costly stockouts by setting clear warning triggers. Use `calculate_reorder_point` to know exactly when your safety net runs low, so you always maintain service levels.
- Saves time auditing budgets. Run `analyze_cost_efficiency` to get an immediate comparison of annual spending on ordering versus keeping items stored.
- Streamlines planning for multiple product lines. You can run the full sequence—from cost analysis to optimal quantity—to manage your entire catalog from one place.
- Quickly adjusts to price changes or demand shifts. Simply update your input parameters and rerun the calculations to see how your ideal order size changes.

## How It Works

The bottom line is, it takes complex financial data and turns it into a simple 'when' and 'how much' buying plan.

1. First, you provide the MCP with key inputs: yearly demand figures, current order fees, and unit storage costs.
2. The system runs specialized calculations to pinpoint optimal metrics—like minimum cost points and ideal stock thresholds—based on those numbers.
3. You receive clear outputs showing the best quantity to buy and the exact inventory level that triggers your next purchase.

## Frequently Asked Questions

**How does calculate_eoq_metrics work?**
It calculates the Economic Order Quantity, which is the ideal amount of stock you should order at one time. It balances your ordering costs against your storage fees to find that financial sweet spot.

**Can I use calculate_reorder_point without knowing my EOQ?**
Yes, they are separate tools. You can use `calculate_reorder_point` to set a safety threshold based on lead time and daily demand, even if you haven't run the full EOQ calculation yet.

**What is the purpose of analyze_cost_efficiency?**
This tool breaks down your annual costs. It shows exactly how much money you spend on placing orders versus how much you lose just keeping the inventory stored, helping you spot cost imbalances.

**Does this MCP handle demand variability?**
The core calculation assumes stable demand patterns for its primary metrics. For highly volatile or seasonal items, use a more specialized forecasting tool first to clean up your input data.

**What inputs does `analyze_cost_efficiency` require to run correctly?**
It needs specific numerical data for annual demand, holding costs, and ordering costs. If you provide text or conflicting metrics, the tool will return an input error, so make sure all values are clean numbers.

**Does `calculate_eoq_metrics` consider bulk purchase discounts?**
No, this MCP uses standard inventory models and does not factor in variable pricing or volume-based discounts. The calculations assume a single unit cost regardless of the order size.

**What happens if I run `calculate_reorder_point` with zero annual demand?**
The reorder point will correctly default to zero units. This result is expected because there's no calculated daily usage rate, meaning you don't need a safety buffer against consumption.

**How fast are the calculations when I use this MCP?**
The response time is extremely fast; it processes mathematical models near-instantaneously. You can expect results within one second, making it ideal for real-time planning checks.