# Logistics Stockout Rate Calculator AI Agent Connect

> Logistics Stockout Rate Calculator MCP gives your AI client the ability to diagnose inventory availability. It identifies specific stockout periods, calculates frequency and impact across SKUs, and estimates the volume of demand you missed during those gaps. You can also verify that your data snapshots are sufficient for accurate reporting.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_fNX93TKSB4f4LuzSIRFwDW0Kq2mciHI2aVQh5Pb6/ai-agent-connect
- **Tags:** inventory, stockout, logistics, supply-chain, metrics

## Description

You can use this MCP to turn raw inventory and demand data into actionable service level metrics. Instead of manually hunting through spreadsheets to find when a SKU went dark, your agent can pinpoint exact stockout events and their duration. It handles the heavy lifting of aggregating frequency and impact across different locations or product lines. If you need to quantify the cost of these gaps, the MCP estimates the demand you failed to meet. It also includes a check to ensure your data snapshots are continuous enough to provide reliable results. This is built for logistics teams that need to understand how often they run out of stock and how much that actually hurts their service levels.

## Tools

### calculate_stockout_rates
This tool aggregates how often stockouts happen and their total impact across specific SKUs or warehouse locations.

### estimate_lost_demand
This tool provides a proxy for the specific quantity of demand that went unfulfilled during stockout periods.

### get_stockout_events
This tool identifies every distinct period where a SKU was out of stock at a given location.

### verify_data_continuity
This tool checks if your provided data snapshots are complete enough to run accurate calculations.

## Prompt Examples

**Prompt:** 
```
Show me the stockout events for SKU 'PROD-123' at location 'WH-01' between 2024-01-01 and 2024-01-31.
```

**Response:** 
```
There were two stockout events for PROD-123 at WH-01: one from Jan 5th to Jan 7th (2880 minutes) and another from Jan 20th to Jan 21st (1440 minutes).
```

**Prompt:** 
```
What is the stockout rate for SKU 'SKU-99' at location 'LOC-A' for the first quarter of 2024?
```

**Response:** 
```
The stockout rate for SKU-99 at LOC-A for Q1 2024 was 0.15, with 3 unique stockout events recorded.
```

**Prompt:** 
```
Estimate the lost demand for SKU 'SKU-456' at location 'WH-02' using the average_daily_demand rule.
```

**Response:** 
```
The estimated lost demand for SKU-456 at WH-02 is 45 units, based on the average_daily_demand rule.
```

## Capabilities

### Stockout Event Detection
Your agent uses this to find the exact start and end times of inventory gaps.

### Demand Loss Estimation
Your agent calculates how much sales volume was missed during stockout windows.

### Data Integrity Checks
Your agent verifies that your inventory snapshots are sufficient for reliable math.

### Aggregated Impact Reporting
Your agent summarizes frequency and impact across multiple SKUs or sites.

## Use Cases

### Service Level Audits
Use the agent to find out how often specific SKUs failed to meet demand at certain locations.

### Lost Sales Analysis
Calculate the volume of demand missed during stockout periods to understand revenue impact.

### Data Quality Verification
Check if your current inventory snapshots are complete enough to perform reliable analysis.

### Regional Performance Comparison
Compare stockout rates and frequencies between different warehouse locations.

## Benefits

- Identifies exact time windows when SKUs were unavailable.
- Quantifies unfulfilled demand to show the impact of stockouts.
- Aggregates stockout data across various locations and products.
- Validates data snapshots to ensure calculation accuracy.

## How It Works

Connect your client to Vinkius and start querying your inventory data immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your inventory and demand data to your agent.
3. Ask your agent to identify stockout events or calculate rates.
4. Receive direct answers and metrics from the MCP tools.

## Frequently Asked Questions

**What can this MCP do with my inventory data?**
It identifies stockout periods, calculates stockout rates, and estimates the amount of lost demand.

**How does it estimate lost demand?**
It uses the available demand data to provide a proxy for the quantity of demand that could not be fulfilled during stockouts.

**Can I check if my data is good enough for analysis?**
Yes, the verify_data_continuity tool checks if your snapshots are sufficient for accurate calculations.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client like Claude, Cursor, or Windsurf.

**Does it work for a single SKU or multiple locations?**
It can do both. You can look at specific SKU events or aggregate rates across multiple SKUs and locations.

**How do I identify specific periods where a product was out of stock?**
You can use the `get_stockout_events` tool to retrieve the start time, end time, and duration for every distinct stockout period for a specific SKU and location.

**Can I estimate the amount of lost demand during a stockout?**
Yes, by using the `estimate_lost_demand` tool and providing a specific rule, such as 'average_daily_demand', the system can provide a proxy for unfulfilled demand.

**How can I check if my inventory data is complete enough for analysis?**
The `verify_data_continuity` tool checks for gaps in your inventory snapshots to ensure the calculations are reliable.
