# Logistics Days of Inventory Calculator AI Agent Connect

> Logistics Days of Inventory Calculator MCP lets your AI client calculate remaining stock duration based on current inventory and consumption patterns. It handles the math for SKU-level analysis or high-level warehouse health reports, including unit conversions and consumption rate tracking.

## Overview
- **Category:** inventory-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_Bh5DFEBwE8lETLo7IIvcUhKxCWGV0g3xl3WWpzDm/ai-agent-connect
- **Tags:** inventory, logistics, supply-chain, stock-analysis, warehouse

## Description

You can stop manually calculating stock depletion. This MCP gives your AI agent the math tools needed to figure out exactly how long your current inventory will last. Instead of staring at spreadsheets, you can ask your agent to check specific SKUs or pull a broad report across multiple warehouse locations. It handles the heavy lifting like unit conversions and consumption rate analysis. If you need to know which items are moving too slowly, the MCP identifies those thresholds for you. It works by looking at your historical consumption to predict future stockouts, making it easier to plan your next replenishment cycle without guessing.

## Tools

### calculate_bulk_doi_report
This tool generates a high-level summary of inventory health across multiple SKUs and locations. It's useful for getting a bird's-eye view of stock status.

### calculate_doi_by_sku
This tool calculates the Days of Inventory for a specific SKU at a specific location. You can run it using either quantity or total value.

### get_consumption_rates
This tool retrieves the historical average daily consumption rate for a specific SKU. It provides the baseline for all depletion math.

### validate_unit_compatibility
This tool checks if your inventory and consumption units can be reconciled. It uses conversion factors to ensure the math stays accurate.

## Prompt Examples

**Prompt:** 
```
How many days of inventory do we have for SKU 'SKU-123' at location 'WH-NORTH' based on the last 30 days of demand?
```

**Response:** 
```
SKU-123 at WH-NORTH has 45 days of inventory remaining based on the last 30 days of consumption.
```

**Prompt:** 
```
Give me a summary report of inventory health for locations 'LOC-A' and 'LOC-B' using a 60-day reporting period.
```

**Response:** 
```
The report for LOC-A and LOC-B shows 12 items with healthy stock levels and 3 items flagged as slow-moving.
```

**Prompt:** 
```
What is the average daily consumption rate for SKU 'PROD-99' at location 'WH-EAST' for the last 90 days?
```

**Response:** 
```
The average daily consumption rate for PROD-99 at WH-EAST over the last 90 days is 15.5 units.
```

## Capabilities

### Stock Depletion Math
Your agent uses this to determine how many days of stock remain before a reorder is needed.

### Bulk Health Reporting
The AI generates summaries across multiple locations to find slow-moving or overstocked items.

### Consumption Tracking
Your agent pulls historical daily averages to build accurate depletion models.

### Unit Reconciliation
The MCP checks if different measurement units can be converted for accurate calculations.

## Use Cases

### Preventing Stockouts
Your agent monitors consumption rates to alert you when a specific SKU's days of inventory drop below a certain level.

### Warehouse Auditing
You run a bulk report to see which locations have excess stock sitting idle.

### Replenishment Planning
Use historical consumption rates to decide exactly when to place your next order.

### Multi-site Monitoring
Compare inventory health between different warehouses using a single summary report.

## Benefits

- Automates the calculation of days of inventory for any SKU.
- Identifies slow-moving stock using defined thresholds.
- Handles unit conversions to keep math consistent.
- Provides high-level visibility across multiple warehouse locations.

## How It Works

Connecting this MCP to your AI client gives your agent immediate access to logistics math tools.

1. Connect your AI client to the Vinkius hosted MCP.
2. Ask your agent to perform a specific inventory calculation or report.
3. The agent invokes the necessary tools to process your data.
4. You receive a direct answer about stock levels or inventory health.

## Frequently Asked Questions

**What does 'Days of Inventory' mean?**
It is a calculation of how many days your current stock will last based on how fast you are consuming it.

**Can I check inventory for a single item?**
Yes, you can use the tool to find the days of inventory for a specific SKU at a specific warehouse location.

**How does the MCP handle different units of measure?**
The MCP includes a tool to validate unit compatibility and uses conversion factors to ensure the math is correct.

**Can I get a report for all my warehouses at once?**
Yes, the bulk reporting tool provides a high-level summary of inventory health across multiple SKUs and locations.

**Which AI clients can use this MCP?**
You can connect this MCP to any compatible client like Claude, Cursor, Windsurf, or VS Code.

**How is the Days of Inventory (DOI) calculated?**
The DOI is calculated by dividing the current inventory amount (quantity or value) by the average daily consumption rate established over the specified reporting period.

**Can I identify slow-moving items?**
Yes, by using `calculate_doi_by_sku` with a `slowMovingThreshold`, the tool will flag items as slow-moving if their DOI exceeds that threshold.

**What happens if there is no demand for a product?**
If demand is zero, the tool returns a 'ZERO_DEMAND' status in the denominator status field to indicate the calculation is mathematically undefined.
