# Logistics Supplier Lead-Time Calculator AI Agent Connect

> Logistics Supplier Lead-Time Calculator MCP analyzes your supply chain data to find exactly where delays happen. It calculates lead-time statistics like medians and percentiles while respecting your specific business calendars. Your AI client can use it to spot missing data, identify bottleneck stages, and audit supplier reliability without you manually crunching timestamps.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_XsLWScCIPM4gzTDkrpJA8V6kcC6G6KRN29B6PmXl/ai-agent-connect
- **Tags:** lead-time, supplier-performance, supply-chain, logistics, statistics

## Description

You spend too much time digging through transactional logs to figure out why a shipment was late. This MCP changes that by turning raw timestamps into clear statistical insights. Instead of manually calculating averages, you can ask your AI client to run a full statistical summary of a supplier's performance, including medians and percentiles. It accounts for your specific business-time conventions, so you aren't looking at useless numbers that include weekends or holidays when they shouldn't. 

You can pinpoint exactly which part of your logistics chain is dragging down your speed. If a supplier claims they are meeting targets but your inventory is low, you can use this to see if the delay is happening during transit or at the receiving dock. It also acts as a data integrity check. If your lead-time math looks off, the MCP can scan for missing timestamps in the lifecycle to ensure your reports are actually based on complete data. It bridges the gap between messy logistics logs and the hard numbers you need to manage your vendors.

## Tools

### check_event_completeness
This tool scans supplier data to find missing timestamps. It flags gaps in the supply chain lifecycle so you can fix data quality issues.

### calculate_supplier_performance
This tool generates a full statistical summary of lead times. It provides the averages, medians, and percentiles you need for a specific supplier.

### get_stage_contribution_breakdown
This tool identifies the specific part of the logistics chain causing delays. It shows which stage is the primary driver of lead-time increases.

### validate_lead_time_config
This tool checks your business rules and calendars. It ensures your lead-time calculations are valid based on your specific operating rules.

## Prompt Examples

**Prompt:** 
```
What is the average lead time and variability for supplier S123 using calendar CAL-01?
```

**Response:** 
```
The average lead time for supplier S123 is 14.5 days, with a variability of 2.3 days. The 90th percentile is 18 days.
```

**Prompt:** 
```
Which part of the logistics chain is causing the most delay for supplier S456?
```

**Response:** 
```
The 'Shipment to Receipt' stage is the primary driver of delay, contributing 65% of the total lead time for supplier S456.
```

**Prompt:** 
```
Are there any missing timestamps for supplier S789?
```

**Response:** 
```
There are 3 incomplete events for supplier S789, specifically missing 'Receipt' timestamps for orders ORD-101 and ORD-105.
```

## Capabilities

### Statistical Lead-Time Analysis
Your agent calculates medians and percentiles to give a realistic view of supplier speed.

### Bottleneck Identification
The AI identifies which specific logistics stage is responsible for the most significant delays.

### Data Integrity Auditing
Your client scans for missing timestamps to ensure your performance metrics are accurate.

### Business Calendar Validation
The MCP verifies that lead-time math respects your specific business rules and holidays.

## Use Cases

### Supplier Auditing
Compare actual lead times against contract requirements using statistical summaries.

### Process Optimization
Find the exact stage in your logistics chain where goods are sitting idle too long.

### Data Quality Control
Detect missing event timestamps that would otherwise skew your supply chain metrics.

### Capacity Planning
Use percentile data to understand worst-case lead times for better inventory planning.

## Benefits

- Calculates percentiles and medians to provide a more accurate picture than simple averages.
- Identifies specific stages in the logistics chain that contribute to delays.
- Flags missing timestamps to prevent inaccurate performance reporting.
- Accounts for business-time conventions to ensure lead-time math is realistic.

## How It Works

You connect the MCP to your AI client and start asking questions about your supply chain data.

1. Connect the MCP to your preferred client like Claude or Cursor via Vinkius.
2. Provide your supplier data or identifiers to your AI agent.
3. Ask questions about lead times, delays, or data gaps.
4. The AI uses the MCP tools to run calculations and return specific metrics.

## Frequently Asked Questions

**How does this MCP handle weekends and holidays?**
The MCP uses business-time conventions and your specific calendar configurations to ensure lead-time calculations are accurate to your actual operating days.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client, including Claude, Cursor, and Windsurf.

**What kind of statistics does it provide?**
It provides detailed statistical summaries including averages, medians, and percentiles for supplier lead times.

**How does it help find delays?**
It uses a stage contribution breakdown to show exactly which part of the logistics chain is responsible for the most delay.

**Does it check for data errors?**
Yes, it includes a tool to check for event completeness, which identifies missing timestamps in your supply chain data.

**How does this tool handle weekends and holidays?**
The tool uses the provided `businessCalendarId` to ensure all lead-time calculations respect defined working days and holidays, providing accurate business-time durations.

**Can I see which stage of the process is causing the most delay?**
Yes, you can use the `get_stage_contribution_breakdown` tool to see the duration and percentage contribution of each lifecycle stage.

**How do I identify data quality issues in my supply chain records?**
You can use `check_event_completeness` to identify specific orders with missing timestamps in the lifecycle.
