# Logistics Yard Dwell Time Calculator AI Agent Connect

> Logistics Yard Dwell Time Calculator MCP gives your AI client the ability to parse trailer lifecycle data. It calculates queue times, processing durations, and carrier performance metrics to help you spot congestion and evaluate vendor efficiency directly within your existing workflow.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_WJjjRAl5fpbtx8C0WCyqvedAmCyEDJRm4UfRneGE/ai-agent-connect
- **Tags:** dwell-time, yard-management, carrier-performance, logistics-analytics, efficiency

## Description

You can use this MCP to turn messy yard logs into clear performance metrics. Instead of manually calculating how long trailers sit in your yard, your agent handles the math for you. It breaks down every visit into specific stages, like how long a trailer waited in queue versus how long it actually spent at a dock. 

You can compare how different carriers are performing against each other to see who is hitting your targets and who is causing delays. The MCP also helps you maintain high data standards by checking for missing timestamps that would otherwise ruin your analytics. By using percentile distributions, your agent can identify specific outliers that represent major congestion events. It's a direct way to move from raw gate data to a clear picture of your yard's throughput and carrier reliability.

## Tools

### calculate_visit_dwell_metrics
This tool performs a full temporal breakdown of a single trailer visit. It calculates total dwell time and separates queue duration from processing time.

### get_carrier_performance_comparison
This tool compares how different carriers are performing across a group of visits. It helps you see which vendors are moving faster through your facility.

### get_dwell_percentiles
This tool analyzes the distribution of dwell times. It identifies outliers and helps you check if you are meeting SLA requirements.

### validate_visit_integrity
This tool checks your data for quality. It looks for missing timestamps in the trailer lifecycle to ensure your analytics are accurate.

## Prompt Examples

**Prompt:** 
```
Calculate the dwell metrics for a trailer that arrived at 2024-05-01T10:00:00Z, was assigned to a dock at 2024-05-01T10:30:00Z, finished loading at 2024-05-01T11:30:00Z, and left at 2024-05-01T12:00:00Z for carrier 'C123'.
```

**Response:** 
```
The total dwell time was 120 minutes, with 30 minutes spent in queue and 60 minutes in processing.
```

**Prompt:** 
```
Compare the performance of carriers in these visits: [{'gateInTime': '2024-05-01T08:00:00Z', 'gateOutTime': '2024-05-01T10:00:00Z', 'carrierId': 'Alpha'}, {'gateInTime': '2024-05-01T09:00:00Z', 'gateOutTime': '2024-05-01T11:00:00Z', 'carrierId': 'Beta'}].
```

**Response:** 
```
Both Alpha and Beta carriers have an average dwell time of 120 minutes.
```

**Prompt:** 
```
What are the 90th percentile dwell times for these visits: [{'gateInTime': '2024-05-01T08:00:00Z', 'gateOutTime': '2024-05-01T10:00:00Z'}, {'gateInTime': '2024-05-01T08:00:00Z', 'gateOutTime': '2024-05-01T12:00:00Z'}]?
```

**Response:** 
```
The 90th percentile dwell time is 240 minutes.
```

## Capabilities

### Temporal Analysis
Your agent uses this to split total dwell time into queue and processing stages.

### Carrier Benchmarking
Your agent compares efficiency levels between different carriers in your dataset.

### Outlier Detection
Your agent uses percentile distributions to find trailers that stayed too long.

### Data Validation
Your agent checks for missing timestamps to prevent incorrect calculations.

### SLA Monitoring
Your agent evaluates dwell time distributions against your service level agreements.

## Use Cases

### Carrier Performance Reviews
Compare the average dwell times of different carriers to evaluate vendor efficiency.

### Bottleneck Identification
Use stage-specific metrics to see if delays happen in the queue or during processing.

### SLA Compliance Audits
Check percentile distributions to ensure trailer dwell times stay within agreed limits.

### Data Quality Checks
Run integrity checks on visit logs to ensure all critical timestamps are present.

## Benefits

- Identifies specific queueing bottlenecks through stage-specific duration math.
- Detects data errors by flagging missing timestamps in the trailer lifecycle.
- Quantifies carrier efficiency using direct performance comparisons.
- Spots extreme dwell time outliers using percentile distributions.

## How It Works

Get your yard data into your AI client and start asking questions immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your trailer visit data or logs to your agent.
3. Ask your agent to calculate metrics, compare carriers, or check for outliers.
4. Receive direct, calculated answers from the MCP tools.

## Frequently Asked Questions

**What can this MCP calculate for a single trailer?**
It calculates total dwell time and breaks it down into queue and processing durations.

**Can I compare different carriers using this tool?**
Yes, the get_carrier_performance_comparison tool compares the efficiency of different carriers within a set of visits.

**How does it help with data accuracy?**
The validate_visit_integrity tool checks for missing timestamps to ensure your data is complete and reliable.

**How do I find trailers that stayed too long?**
You can use the get_dwell_percentiles tool to analyze the distribution of dwell times and identify outliers.

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

**What metrics can I calculate for a single trailer?**
You can calculate total dwell time, queue dwell time, processing dwell time, and the queue share percentage using the `calculate_visit_dwell_metrics` tool.

**How do I compare different transport companies?**
Use the `get_carrier_performance_comparison` tool by providing an array of visit data to see average dwell times and congestion impact scores per carrier.

**Can I check if my yard data is complete?**
Yes, the `validate_visit_integrity` tool checks for missing critical timestamps like Gate-In or Gate-Out to ensure your analysis is accurate.
