# Logistics Shortage Allocation Calculator AI Agent Connect

> Logistics Shortage Allocation Calculator MCP helps you manage inventory shortages by calculating how to distribute limited stock among competing orders. It uses customer segment weights, promised dates, and partial fulfillment rules to make decisions. You can also find alternative products for unavailable items and quantify the financial impact of shortages through your AI client.

## Overview
- **Category:** inventory-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_0MnO4WfrX761Zfwaik4xpwornJAHCJbCiTYSFMa4/ai-agent-connect
- **Tags:** inventory, allocation, shortage, logistics, supply-chain

## Description

When you run out of stock, you have to make hard choices about which customers get what. This MCP acts as a decision engine to help you navigate those shortages. Instead of guessing, you can use your AI client to run logic that weighs customer priority against promised delivery dates. You can determine the best way to split up a small batch of inventory across a large backlog of orders. If a specific item is out of stock, the tool helps you find suitable substitutes to keep orders moving. Beyond just moving boxes, it gives you the numbers you need to understand the situation. You can see exactly how much revenue is at risk and how much your service levels will drop because of the shortage. It turns a chaotic inventory problem into a set of calculated decisions.

## Tools

### analyze_revenue_risk
This tool quantifies the financial impact of your current inventory shortage.

### calculate_allocation
This tool runs the core logic to distribute available inventory across all your open orders.

### evaluate_substitution_potential
This tool checks if you can fix a shortage by using alternative products instead.

### get_service_level_impact
This tool calculates how much a shortage will hurt your fulfillment rates against promised dates.

## Prompt Examples

**Prompt:** 
```
Calculate the allocation for my current inventory and orders.
```

**Response:** 
```
The allocation resulted in 50 units distributed across 3 orders, with a remaining backlog of 10 units and a revenue exposure of $500.
```

**Prompt:** 
```
Check if I can substitute item 'SKU-123' with something else.
```

**Response:** 
```
Yes, item 'SKU-456' is a valid substitute and there are 25 units available in stock.
```

**Prompt:** 
```
What is the financial risk of this shortage?
```

**Response:** 
```
The total revenue exposure is $1,200, with $450 attributed to high-priority customer segments.
```

## Capabilities

### Inventory Distribution
Your agent uses this to split limited stock among multiple customers based on priority.

### Product Substitution
Your agent identifies alternative items to fulfill orders when primary stock is missing.

### Financial Risk Assessment
Your agent calculates the total revenue lost due to inventory gaps.

### Service Level Tracking
Your agent measures how shortages affect your ability to meet promised delivery dates.

## Use Cases

### High-Priority Fulfillment
Prioritize stock for key customer segments when total inventory is low.

### Shortage Mitigation
Find alternative SKUs to fulfill an order when the primary item is out of stock.

### Financial Impact Reporting
Determine the exact dollar amount at risk during a supply chain disruption.

### Service Level Monitoring
Check how much a stockout will delay promised delivery dates for your customers.

## Benefits

- Calculates optimal stock distribution using customer weights and dates.
- Identifies viable product substitutes to prevent order cancellations.
- Quantifies revenue exposure to help prioritize high-value orders.
- Tracks fulfillment rates to monitor service level impacts.

## How It Works

You connect the MCP to your AI client and start asking questions about your inventory.

1. Connect your AI client to the Vinkius hosted MCP.
2. Provide your current inventory levels and open order data to your agent.
3. Ask the agent to run allocation or substitution logic.
4. Review the calculated distribution or risk metrics provided by the agent.

## Frequently Asked Questions

**How does this MCP handle inventory shortages?**
It uses a decision engine to distribute limited stock based on customer priority, promised dates, and partial fulfillment rules.

**Can I find alternative products for out-of-stock items?**
Yes, you can use the tool to evaluate if a shortage can be mitigated by using different products.

**What kind of financial data does it provide?**
The tool can quantify revenue risk, showing the total financial exposure caused by a shortage.

**Does this work with my existing AI tools?**
Yes, it works with any MCP-compatible client like Claude, Cursor, or Windsurf.

**How does it measure service levels?**
It calculates how much a shortage impacts your ability to meet the delivery dates you promised to customers.

**How does the tool prioritize orders?**
Orders are prioritized primarily by their promised date (earliest first) and secondarily by the weight of the customer segment.

**Can I use alternative items if stock is low?**
Yes, you can use `evaluate_substitution_potential` to check if a shortage can be mitigated by using valid alternative products from your substitution map.

**What is the difference between partial and full fulfillment?**
If partial fulfillment is enabled in `calculate_allocation`, orders can receive a fraction of the requested quantity. If disabled, an order only receives inventory if the full amount is available.
