# Waypoint Leg Calculator AI Agent Connect

> Waypoint Leg Calculator MCP gives your AI agent the ability to calculate exact navigation metrics for any series of waypoints. It handles the heavy lifting for distance, course, and travel time calculations, making it easy to plan or analyze maritime and aerial legs with high precision.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_F2xPWehyifMOTdCfgdsO8OAe5OKjXnn5tWlAw3vG/ai-agent-connect
- **Tags:** waypoints, navigation, distance, course, geospatial

## Description

You can use this MCP to turn your AI client into a precise navigation assistant. Instead of guessing distances or courses, your agent can compute exact metrics for each segment in a route. It handles the math for initial and final courses, coordinate deltas, and travel time. If you are planning a long voyage, you can get a high level overview of the entire trip or drill down into specific legs to see how much position change occurs between waypoints. It also checks your work by verifying that your coordinates actually form a physically possible path. This is built for anyone who needs to move from raw coordinates to actionable navigation data without manual calculation.

## Tools

### calculate_leg_metrics
This tool computes specific navigation data for each individual segment in your route. It provides distance, course, and time for each leg.

### get_delta_analysis
This tool isolates the change in position for each leg. It helps your agent track drift or specific offsets between waypoints.

### get_route_summary
This tool provides a high level overview of the entire voyage. It gives you total distance and total time without the leg by leg breakdown.

### validate_coordinates
This tool checks if a set of coordinates represents a physically possible path. It prevents your agent from attempting impossible routes.

## Prompt Examples

**Prompt:** 
```
Calculate the metrics for a route with waypoints at (0,0), (1,1), and (2,2) at a speed of 10.
```

**Response:** 
```
The route consists of 2 legs. Leg 1: distance 1.41, initial course 45°, final course 45°, travel time 0.14. Leg 2: distance 1.41, initial course 45°, final course 45°, travel time 0.14. Total distance: 2.82, total time: 0.28.
```

**Prompt:** 
```
Check if these coordinates are valid: (45, 90), (46, 91).
```

**Response:** 
```
The coordinates are invalid because the longitude 91 is outside the allowed range of -180 to 180.
```

**Prompt:** 
```
What is the total distance for a trip with waypoints (0,0) and (0,10) at speed 5?
```

**Response:** 
```
The total distance is 10.0 and the total travel time is 2.0.
```

## Capabilities

### Segment Math
Your agent calculates distance and course for each individual leg in a path.

### Route Summaries
Your agent provides total voyage distance and time in one step.

### Position Tracking
Your agent uses delta analysis to monitor position changes and drift.

### Path Validation
Your agent verifies that coordinates are within valid physical ranges.

## Use Cases

### Voyage Planning
An agent calculates the total distance and time for a multi-stop maritime route.

### Drift Analysis
A user uses delta analysis to see how much a position has changed between waypoints.

### Route Verification
An AI client checks if a set of coordinates is physically possible to navigate.

### Segment Breakdown
A navigator gets the specific initial and final course for each leg in a flight path.

## Benefits

- Eliminates manual trigonometry for course and distance calculations.
- Prevents errors by validating coordinate feasibility before planning.
- Provides granular leg data and high level summaries simultaneously.
- Automates the calculation of travel time based on provided speeds.

## How It Works

Connect your AI client to Vinkius and start sending navigation data immediately.

1. Connect your preferred MCP client to Vinkius.
2. Provide a list of waypoints and speed to your AI agent.
3. Your agent calls the necessary tools to process the math.
4. Your agent returns precise navigation metrics or route summaries.

## Frequently Asked Questions

**What kind of navigation can this MCP handle?**
It is designed for high precision maritime and aerial navigation calculations.

**Can your agent check if my coordinates are valid?**
Yes, the validate_coordinates tool checks if your coordinates represent a physically possible path.

**How do I get the total distance of a trip?**
You can use the get_route_summary tool to get the total distance and time for an entire voyage.

**Does this MCP work with any AI client?**
It works with any MCP-compatible client like Claude, Cursor, or Windsurf.

**Can I see the change in position between waypoints?**
Yes, the get_delta_analysis tool isolates position changes for each leg to help with drift analysis.

**What metrics can be calculated for a route?**
You can calculate distance, initial course, final course, coordinate deltas (latitude and longitude changes), and travel time for each leg, as well as cumulative totals for the entire voyage.

**How do I ensure my waypoints are valid?**
You can use the `validate_coordinates` tool to verify that your set of coordinates represents a physically possible path within standard geographic bounds.

**Can I get a summary of the whole trip?**
Yes, the `get_route_summary` tool provides a high-level overview including total distance, total time, and the number of waypoints and legs.
