# Route Arrival Percentile Calculator AI Agent Connect

> Route Arrival Percentile Calculator provides the statistical backbone for evaluating transit reliability. It lets your AI client process raw duration data to find p50, p90, and p95 percentiles, check if you are hitting your SLAs, and visualize how often your routes fall behind schedule.

## Overview
- **Category:** analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_rtGn0h2OTKMeOW95BKVNkpJqQ78ns5BKXk6QFuTt/ai-agent-connect
- **Tags:** logistics, statistics, percentiles, sla, route-optimization

## Description

You can stop guessing how reliable your delivery routes actually are. This MCP gives your AI agent the math it needs to turn a list of timestamps or durations into actionable reliability metrics. Instead of looking at simple averages that hide outliers, you can use this tool to see the full distribution of your transit times. 

If you need to know if your fleet is meeting contractual obligations, you can check performance against specific thresholds. You can also break down your data into quartiles to see exactly where the most common delays occur. Whether you are looking at a single route or a massive dataset of transit times, this MCP handles the heavy lifting of statistical calculation, leaving your AI client free to interpret the results and suggest optimizations.

## Tools

### analyze_service_level_compliance
This tool checks if your routes are meeting specific performance requirements or SLAs. It compares your duration data against the thresholds you set.

### calculate_arrival_statistics
This tool provides a statistical overview of how your routes are performing. It calculates percentiles like p50 and p95 to show the range of arrival times.

### generate_delay_histogram
This tool creates a visual distribution of delays. It shows how often your transit times deviate from your expected baseline.

### get_quantile_intervals
This tool segments your duration data into equal-sized groups. It helps you understand the spread of your data through quartiles or other intervals.

## Prompt Examples

**Prompt:** 
```
Calculate the arrival statistics for these durations: [25, 30, 22, 45, 35, 28, 32] with a target threshold of 35 minutes.
```

**Response:** 
```
The statistics for the provided durations are: sample count is 7, the 90th percentile is 41.2 minutes, and the on-time probability is 71.4%.
```

**Prompt:** 
```
Check the service level compliance for durations [10, 15, 20, 25, 30] against thresholds of 15 and 25 minutes.
```

**Response:** 
```
The compliance rate for the 15-minute threshold is 20%, and the compliance rate for the 25-minute threshold is 60%.
```

**Prompt:** 
```
Divide these durations into 4 quartiles: [10, 12, 15, 18, 20, 22, 25, 30].
```

**Response:** 
```
The quantile boundaries for the 4 segments are: 12.75, 16.5, 21.5.
```

## Capabilities

### SLA Verification
Your agent uses this to confirm if transit times stay within agreed contract limits.

### Percentile Calculation
Your agent calculates p50, p90, and p95 values to understand route volatility.

### Delay Distribution
Your agent generates histograms to show how often delays occur relative to a baseline.

### Data Segmentation
Your agent splits duration sets into quartiles to analyze the spread of arrival times.

## Use Cases

### Contract Compliance
Verify if your carrier is meeting the 95% on-time delivery requirement specified in your contract.

### Route Reliability Audits
Analyze a month of transit data to find which specific routes have the highest delay variance.

### Scheduling Optimization
Use p90 arrival times to set more realistic delivery windows for customers.

### Performance Benchmarking
Compare different transit routes by looking at their delay distributions and quantile spreads.

## Benefits

- Replaces manual spreadsheet calculations with direct AI queries.
- Identifies outliers using percentiles rather than misleading averages.
- Automates SLA compliance reporting from raw duration data.
- Visualizes delay patterns through histogram generation.

## How It Works

Connect your preferred client to Vinkius and start querying your transit data immediately.

1. Connect your AI client to the Vinkius platform.
2. Provide your raw duration or timestamp data to your agent.
3. Ask your agent to run specific statistical tools like calculate_arrival_statistics.
4. Review the calculated percentiles or compliance rates provided by the MCP.

## Frequently Asked Questions

**What kind of data does this MCP need?**
The MCP works with lists of durations or transit times. You can provide these as numbers representing minutes, hours, or any consistent time unit.

**Can I use this with Claude or Cursor?**
Yes. This MCP is compatible with any MCP-compatible client, including Claude, Cursor, and Windsurf.

**How does it handle SLA checks?**
You provide the duration data and the specific time thresholds. The tool then calculates the compliance rate against those targets.

**What is the difference between p50 and p95?**
The p50 is the median arrival time, while the p95 represents the time within which 95% of all arrivals occur, helping you account for worst-case scenarios.

**Do I need to host the MCP myself?**
No. Vinkius hosts and manages the MCP for you. You connect your client and start using the tools.

**How do I calculate the probability of a route being on time?**
You can use the `calculate_arrival_statistics` tool. By providing the trip durations and a target threshold, the tool returns the on-time probability.

**Can I check if my routes meet specific SLA requirements?**
Yes, the `analyze_service_level_compliance` tool is designed to check compliance rates against multiple time thresholds simultaneously.

**How can I visualize the spread of delays?**
Use the `generate_delay_histogram` tool. It compares durations against a baseline and organizes them into bins to show the distribution of delays.
