# Fleet Vehicle Assignment Optimizer AI Agent Connect

> Fleet Vehicle Assignment Optimizer MCP automates the logic of matching service jobs to your fleet. It calculates payload capacity, checks driver certifications, and verifies vehicle availability to ensure every job is assigned to a capable vehicle and an authorized driver.

## Overview
- **Category:** fleet-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_alsCwKYMukPbgvfSUWCrWM9CqJOURnQ0neNsOlu5/ai-agent-connect
- **Tags:** logistics, fleet, scheduling, optimization, transportation

## Description

You can stop manually checking driver logs and vehicle specs every time a new job comes in. This MCP handles the heavy lifting of logistical planning by looking at your fleet's constraints in real time. When you give your AI client a list of jobs, it cross-references payload limits, travel range, and driver credentials to build an optimized schedule. It prevents scheduling conflicts by checking if a vehicle is actually available and ensures you don't assign a heavy load to a vehicle that can't carry it. If you need to know how much room is left in a truck after a run, the MCP tracks remaining capacity for both weight and distance. It's a direct way to turn your fleet data into actionable assignments without the manual math.

## Tools

### calculate_remaining_capacity
This tool monitors leftover resources like payload weight and driving range. It tells you exactly how much more a vehicle can carry or travel after a job is assigned.

### check_driver_eligibility
This tool verifies driver credentials against specific vehicle requirements. It ensures your drivers are authorized for the class of vehicle they are assigned to.

### validate_vehicle_availability
This tool checks for scheduling conflicts. It confirms whether a specific vehicle is free to take on a job during a requested time window.

### assign_fleet_jobs
This tool distributes a batch of service jobs across your fleet. It matches jobs to vehicles based on capacity, range, and driver authorization.

## Prompt Examples

**Prompt:** 
```
Assign these jobs to my fleet: jobs=[{'id': 'j1', 'weight': 500, 'distance': 50}, {'id': 'j2', 'weight': 200, 'distance': 30}], vehicles=[{'id': 'v1', 'capacity': 1000, 'range': 200, 'class': 'Medium'}], drivers=[{'id': 'd1', 'classes': ['Medium']}]
```

**Response:** 
```
Job j1 has been assigned to vehicle v1 with driver d1. Job j2 has also been assigned to vehicle v1 with driver d1. Remaining capacity for v1 is 300kg payload and 120km range.
```

**Prompt:** 
```
Is driver d1 eligible to drive a Heavy class vehicle?
```

**Response:** 
```
No, driver d1 is only authorized for Medium and Light vehicle classes.
```

**Prompt:** 
```
Check if vehicle v1 is available from 2024-05-01T10:00:00Z to 2024-05-01T14:00:00Z.
```

**Response:** 
```
Vehicle v1 is available for the requested time window.
```

## Capabilities

### Automated Job Assignment
Your agent uses this to distribute multiple service tasks across your fleet at once.

### Driver Compliance Checks
The AI checks driver certifications to prevent unauthorized vehicle operation.

### Capacity Monitoring
Your agent calculates remaining payload and range to prevent overloading.

### Availability Verification
The AI checks vehicle schedules to avoid double-booking assets.

## Use Cases

### Daily Dispatching
Assign a morning batch of deliveries to a fleet of trucks while respecting weight limits.

### Driver Compliance
Verify that a driver is legally allowed to operate a heavy-duty vehicle before assigning a route.

### Resource Planning
Check how much remaining capacity a vehicle has after completing its first three stops.

### Conflict Resolution
Confirm a vehicle is not already booked for maintenance or another job before assigning a new task.

## Benefits

- Reduces manual errors in payload and range calculations.
- Prevents unauthorized driver assignments through automated credential checks.
- Eliminates scheduling conflicts by verifying vehicle availability.
- Speeds up the dispatch process by batching job assignments.

## How It Works

You connect the MCP to your AI client and start managing your fleet through natural language.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your job, vehicle, and driver data to your AI agent.
3. Ask the agent to assign jobs or check specific constraints.
4. The agent executes the corresponding tool to process the request.
5. Receive the finalized assignments or status checks immediately.

## Frequently Asked Questions

**How does this MCP handle vehicle capacity?**
The MCP uses the calculate_remaining_capacity tool to track payload and range, ensuring you don't exceed vehicle limits.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client like Claude, Cursor, or Windsurf.

**Does it check if drivers are allowed to drive certain trucks?**
Yes, the check_driver_eligibility tool verifies driver credentials against vehicle classes.

**How do I avoid scheduling two jobs for the same truck?**
The validate_vehicle_availability tool checks for scheduling conflicts before you finalize an assignment.

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

**How does the assignment logic handle driver qualifications?**
The system uses `check_driver_eligibility` to ensure that a driver's specific vehicle class authorization matches the vehicle they are being assigned to.

**Can I check if a vehicle is available for a specific time window?**
Yes, you can use the `validate_vehicle_availability` tool to check if a vehicle is free or if it conflicts with scheduled maintenance blackouts.

**How do I know if a vehicle has enough space for a heavy load?**
You can use `calculate_remaining_capacity` to determine the leftover payload and range of a vehicle after previous assignments.
