# Trip Distance Average AI Agent Connect

> Trip Distance Average MCP lets your AI client pull specific distance data from your travel datasets. You can calculate mean distances for individual journeys, get a full distribution of leg lengths, or pull the average distance across your entire fleet. It turns raw travel logs into actionable distance statistics.

## Overview
- **Category:** transportation
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ATRIT9mbxpGuLYhjwVQgRAq4lo9ZZyVshjY6s5bi/ai-agent-connect
- **Tags:** distance, trips, fleet, travel, metrics

## Description

You can use this MCP to pull distance-based insights directly into your AI workflow. Instead of manually calculating trip lengths or scanning through logs, you just ask your agent for the numbers. You can drill down into a single journey to see how long each leg was, or zoom out to see how your entire fleet is performing on average. It handles the math for you, providing everything from simple averages to full distribution summaries that include your shortest and longest segments. Whether you need to audit specific trip legs or evaluate fleet-wide travel patterns, this MCP gives your AI the tools to query those specific metrics instantly.

## Tools

### get_fleet_average_distance
This tool calculates the mean distance of every leg across your entire dataset. Use it to find the average travel distance for your whole fleet.

### get_leg_details
This tool provides the specific distance for every individual segment within a trip. It's what you use when you need the exact breakdown of a journey.

### get_trip_average_distance
This tool finds the mean distance of all legs within one specific trip. It's built for analyzing the average segment length of a single journey.

### get_trip_stats
This tool generates a summary of the distance distribution for a specific trip. It returns the shortest and longest legs along with the average.

## Prompt Examples

**Prompt:** 
```
What was the average distance of each segment in trip T123?
```

**Response:** 
```
The average distance for the segments in trip T123 was 15.5 km across 3 legs.
```

**Prompt:** 
```
Give me a summary of the distance distribution for trip T456.
```

**Response:** 
```
For trip T456, the shortest leg was 2.0 km, the longest leg was 45.0 km, and the average distance was 18.5 km over 4 legs.
```

**Prompt:** 
```
What are the individual distances for every segment in trip T789?
```

**Response:** 
```
The segments for trip T789 are: leg_001 (10.2 km), leg_002 (5.5 km), and leg_003 (12.3 km).
```

## Capabilities

### Fleet-wide averaging
Your agent uses this to find the mean distance across all recorded trips.

### Trip segment breakdown
Your agent pulls the specific length of every leg in a single journey.

### Distance distribution analysis
Your agent identifies the shortest and longest legs within a specific trip.

### Single trip averaging
Your agent calculates the mean segment length for one specific trip ID.

## Use Cases

### Fleet Performance Audits
Compare the average leg distance of your entire fleet against historical benchmarks.

### Route Efficiency Checks
Use trip stats to see if specific legs in a journey are unusually long or short.

### Trip Detail Reporting
Get a full list of every segment distance for a specific trip ID for documentation.

### Travel Pattern Summaries
Generate a quick summary of distance distributions for individual trips.

## Benefits

- Eliminates manual math for trip segment averages.
- Provides instant distribution summaries for specific journeys.
- Allows for quick fleet-wide distance comparisons.
- Delivers granular leg-by-leg data on demand.

## How It Works

You connect the MCP to your client and then ask questions about your travel data.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Ask your AI agent a question about trip distances or fleet averages.
3. The agent invokes the specific tool needed to query the data.
4. The MCP returns the calculated distances or statistical summaries.
5. Your agent presents the final answer in plain text.

## Frequently Asked Questions

**How do I use this MCP with Claude?**
You connect your Claude client to the Vinkius platform, which hosts the MCP. Once connected, you can ask Claude to perform distance calculations using the available tools.

**Can I get the distance for every single leg in a trip?**
Yes, you can use the get_leg_details tool to retrieve the individual distances for every segment in a specific trip.

**Does this MCP calculate fleet averages?**
Yes, the get_fleet_average_distance tool calculates the average leg distance across all trips in your dataset.

**What kind of trip statistics can I get?**
The get_trip_stats tool provides a summary including the shortest leg, the longest leg, and the average distance for a specific trip.

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

**How do I get the average distance for a specific trip?**
Use the `get_trip_average_distance` tool and provide the unique trip ID.

**Can I filter fleet averages by date?**
Yes, the `get_fleet_average_distance` tool allows you to provide optional start and end dates to filter the trips analyzed.

**What kind of statistics can I get for a trip?**
The `get_trip_stats` tool provides the shortest leg, longest leg, average distance, and the total number of legs in the trip.
