# Logistics Demand Forecast Calculator AI Agent Connect

> Logistics Demand Forecast Calculator MCP provides a deterministic engine to transform raw historical order data into predictive demand signals. It handles the heavy lifting of adjusting for seasonality, planned promotions, and historical stockouts. Your AI client uses this to project future requirements and understand specific SKU volatility without manual data cleaning.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ztRy0mXsbxSBjLloxTRN1bZLxzphtzVkm7Y3icma/ai-agent-connect
- **Tags:** demand-planning, inventory-management, logistics, forecasting, supply-chain

## Description

You can stop guessing how much inventory to hold. This MCP acts as a calculation engine that cleans and adjusts your historical order data to reveal true demand. If you had a stockout last month, the engine repairs that data point so your future projections aren't artificially low. It also lets you layer in seasonal multipliers and planned promotional lifts to see how upcoming events will hit your supply chain. Instead of staring at spreadsheets, you can ask your AI client to pull a specific SKU's demand profile or run a forecast across a future time horizon. It's a direct way to bridge the gap between what actually happened in your warehouse and what you need to prepare for next month.

## Tools

### get_sku_demand_profile
This tool pulls a summary of a specific SKU's historical demand characteristics. It gives your agent the context needed to understand volatility and lead times.

### forecast_demand
This tool calculates projected demand for a specific SKU over a set future timeframe. It uses your historical data to build a predictive model.

### validate_forecast_inputs
This tool checks your datasets for logical consistency. It ensures your data is valid before you run a forecast.

### calculate_error_metrics
This tool evaluates how accurate a historical model was by comparing its predictions against actual past orders.

## Prompt Examples

**Prompt:** 
```
Calculate the demand forecast for SKU 'PROD-123' for the next 3 periods using the provided historical data and a 10% seasonal increase.
```

**Response:** 
```
The forecasted demand for SKU 'PROD-123' for the next three periods is 150, 165, and 165 units respectively.
```

**Prompt:** 
```
What is the demand profile for SKU 'SKU-99' based on this order history?
```

**Response:** 
```
SKU 'SKU-99' has an average daily demand of 45 units, a seasonal volatility of 0.12, and a typical lead time of 5 days.
```

**Prompt:** 
```
Check if my forecast datasets are valid for a new promotion schedule.
```

**Response:** 
```
The datasets are valid and logically consistent for the requested promotion schedule.
```

## Capabilities

### Demand Projection
Your agent calculates future SKU requirements based on historical patterns.

### Data Repair
The engine adjusts historical records to account for periods where inventory was unavailable.

### Seasonality Adjustment
Your AI client applies multipliers to account for predictable seasonal shifts.

### Error Analysis
The tool compares historical models against actual orders to measure accuracy.

### Input Validation
Your agent verifies that all datasets are logically sound before processing.

## Use Cases

### Promotional Planning
Your agent calculates how a planned marketing lift will impact future inventory needs.

### Stockout Recovery
The engine repairs demand signals by adjusting for periods when items were out of stock.

### SKU Profiling
You get a clear view of individual product volatility and lead time requirements.

### Model Validation
Compare historical forecasts against actual orders to see where your planning is failing.

## Benefits

- Corrects historical data to account for stockouts.
- Applies seasonal and promotional multipliers to projections.
- Provides specific SKU volatility and lead time data.
- Validates data consistency automatically.

## How It Works

Connect your AI client to Vinkius to start running demand calculations immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your historical order datasets to your AI agent.
3. Ask the agent to validate the data or pull a specific SKU profile.
4. Run the forecast with seasonal or promotional adjustments.
5. Review the projected demand or error metrics.

## Frequently Asked Questions

**How does this MCP handle stockouts?**
The engine repairs historical data by adjusting for periods when inventory was unavailable, ensuring your future demand signals aren't skewed by past shortages.

**Can I account for upcoming sales or promotions?**
Yes, you can use the forecast tool to apply promotional lifts and seasonal multipliers to your projections.

**What AI clients can I use with this MCP?**
You can use this MCP with any compatible client like Claude, Cursor, Windsurf, or VS Code.

**Does this MCP host the data?**
Vinkius hosts the MCP and manages the execution, allowing you to connect your client and run tools instantly.

**How do I know if my forecast is accurate?**
You can use the calculate_error_metrics tool to compare your historical models against actual order data.

**How does the tool handle periods where items were out of stock?**
The engine uses stockout events to adjust historical volume upward, estimating the true demand that would have occurred if the item had been available.

**Can I validate my data before running a full forecast?**
Yes, you can use the `validate_forecast_inputs` tool to check that your historical orders, seasonality profiles, and promotions are logically consistent.

**What metrics are provided in the forecast output?**
The forecast includes predicted demand per period, seasonality contribution, promotion lift, stockout adjustments, and error metrics like MAPE and RMSE.
