# Turn Restriction Route Validator AI Agent Connect

> Turn Restriction Route Validator MCP checks if your planned vehicle routes are actually legal and physically possible. It validates connectivity, checks for prohibited turns, verifies vehicle-specific access rules, and ensures arrival within permitted time windows. Your AI client uses these tools to catch routing errors before a vehicle ever leaves the depot.

## Overview
- **Category:** logistics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_EJbEZD16q1lu6eY1xBpRCamKFWRRoKnvhSZX7JFf/ai-agent-connect
- **Tags:** routing, vehicle-access, spatial-constraints, logistics, navigation

## Description

You can use this MCP to run rigorous checks on vehicle paths to ensure they comply with complex road rules and timing requirements. Instead of manually checking each junction or height clearance, you let your AI agent handle the heavy lifting. It looks at the specific sequence of edges to confirm the path is physically continuous and checks if the vehicle's weight, height, or width will cause issues on specific segments. It also handles the logic for prohibited turns at junctions and ensures your drivers hit their targets within specific time windows. If you need a final verdict, the MCP can aggregate all these individual checks into a single report. This prevents costly mistakes like sending a heavy truck under a low bridge or a vehicle into a restricted zone during certain hours.

## Tools

### check_turn_restrictions
This tool determines if specific turns are prohibited or if only certain movements are allowed at junctions.

### evaluate_route_summary
This tool aggregates all individual checks into a single validity report.

### validate_route_connectivity
This tool checks if the sequence of edges provided forms a physically continuous path through the network.

### validate_temporal_windows
This tool confirms if a vehicle reaches specific edges within their permitted time intervals.

### verify_vehicle_access
This tool validates whether a specific vehicle type and its characteristics are permitted to traverse the edges.

## Prompt Examples

**Prompt:** 
```
Is this route valid for a heavy truck: edges ['e1', 'e2'], junction ['j1'], vehicleClass 'heavy_truck', dimensions {'weight': 15, 'height': 4, 'width': 2.5}?
```

**Response:** 
```
The route is invalid because edge 'e2' has a height clearance of 3.5m, which is lower than the vehicle's height of 4m.
```

**Prompt:** 
```
Check if the sequence of edges ['e101', 'e102'] connected by junction 'j50' is physically continuous.
```

**Response:** 
```
Yes, the transition from edge 'e101' to 'e102' at junction 'j50' is a valid physical connection.
```

**Prompt:** 
```
Will my vehicle arrive at edge 'e5' in time if it arrives at 14:00 and the window is 12:00 to 15:00?
```

**Response:** 
```
Yes, the arrival time of 14:00 falls within the permitted window of 12:00 to 15:00.
```

## Capabilities

### Connectivity Verification
Your agent checks if a sequence of road segments actually forms a continuous path.

### Turn Restriction Logic
Your agent identifies prohibited turns or restricted movements at specific junctions.

### Vehicle Access Control
The MCP verifies if a vehicle's weight, height, or width allows it to use specific roads.

### Temporal Window Checks
Your agent confirms that arrival times at specific locations fall within allowed intervals.

### Consolidated Reporting
Your agent bundles all individual constraint checks into one final validity report.

## Use Cases

### Heavy Vehicle Routing
Verify that a heavy truck's height and weight are compatible with the planned path's clearances.

### Time-Sensitive Deliveries
Ensure a vehicle reaches a specific edge within its permitted time window to avoid access violations.

### Urban Access Compliance
Check if a specific vehicle type is allowed on certain city streets based on its characteristics.

### Route Integrity Audits
Use the summary tool to get a single report on whether a complex route meets all spatial and temporal rules.

## Benefits

- Prevents physical route failures by checking vehicle dimensions against road constraints.
- Reduces delays by validating arrival times against temporal windows.
- Eliminates illegal maneuvers by checking junction turn restrictions.
- Automates the verification of continuous paths through road networks.

## How It Works

You connect your AI client to the Vinkius-hosted MCP and start sending route data.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your route data, vehicle dimensions, and time windows to your AI agent.
3. Your agent calls the specific MCP tools to run individual constraint checks.
4. Your agent receives the results and presents the findings or a summary report to you.

## Frequently Asked Questions

**What can this MCP validate?**
It validates route connectivity, turn restrictions, vehicle access based on dimensions, and temporal arrival windows.

**How do I use this with my AI client?**
You connect your client to Vinkius once. After that, you can ask your agent to check routes using the available tools.

**Can it check for height restrictions?**
Yes, the verify_vehicle_access tool checks if a vehicle's height and other characteristics are permitted on specific edges.

**Does it handle time-based road access?**
Yes, the validate_temporal_windows tool checks if a vehicle arrives at an edge within its permitted time interval.

**Is there a way to get a single report for a whole route?**
Yes, you can use the evaluate_route_summary tool to aggregate all individual checks into one report.

**How does the validator handle prohibited turns?**
The `check_turn_restrictions` tool identifies if a specific transition between two edges is explicitly forbidden at a junction or if it fails to meet 'permitted-only' requirements.

**Can I check if a heavy truck is allowed on a specific road?**
Yes, you can use `verify_vehicle_access` by providing the edge IDs, the vehicle class (e.g., heavy_truck), and its dimensions like weight and height.

**What is the purpose of the route summary tool?**
The `evaluate_route_summary` tool aggregates results from connectivity, turn, vehicle, and temporal checks to provide a single, comprehensive validity report.
