# Stop Service Time Aggregator AI Agent Connect

> Stop Service Time Aggregator MCP converts individual service tasks into organized time-based data. It breaks down stop durations into specific components like setup, loading, and waiting. Your AI client uses these metrics to analyze route impacts, find scheduling conflicts, and ensure your logistics data is clean and ready for planning.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_CndhcdGfp7EVRwpAOQ5QG4TsSD1AuJFQj31K2Iaf/ai-agent-connect
- **Tags:** logistics, time-tracking, resource-management, route-optimization, supply-chain

## Description

You can stop guessing how much time your stops actually take. This MCP takes raw service task data and organizes it into usable time components like setup, loading, unloading, queueing, and waiting. Instead of looking at a single block of time, you get a granular view of where your resources are actually spending their minutes. 

Your AI client can use these metrics to spot trouble before a driver hits the road. You can check if a specific stop is eating up too much of your total route time or if you have assigned the same resource to two different tasks at once. It also acts as a data gatekeeper, flagging missing or broken information that would otherwise ruin your planning accuracy. It's built to turn fragmented task logs into a structured foundation for logistics optimization.

## Tools

### calculate_route_impact
This tool calculates how much time spent at a specific stop adds to the total duration of a route.

### check_resource_overlaps
This tool identifies if you have assigned the same resource to multiple tasks during the same visit window.

### get_stop_service_summary
This tool provides a high level breakdown of all time components for a specific stop visit.

### validate_task_inputs
This tool checks for missing or malformed data in your tasks to prevent errors during aggregation.

## Prompt Examples

**Prompt:** 
```
Give me a summary of the service time for visit V123.
```

**Response:** 
```
The total duration for visit V123 is 45 minutes, consisting of 10 minutes of setup, 25 minutes of loading, and 10 minutes of waiting.
```

**Prompt:** 
```
Are there any resource overlaps for visit V456?
```

**Response:** 
```
Yes, there is an overlap for resource R-99 between task T-01 and T-02 lasting 5 minutes.
```

**Prompt:** 
```
How much does visit V789 impact the total route time of 300 minutes?
```

**Response:** 
```
Visit V789 accounts for 15% of the total route duration.
```

## Capabilities

### Time Component Breakdown
Your agent splits stop durations into setup, loading, unloading, and waiting periods.

### Conflict Detection
Your agent identifies when resources are double-booked across different tasks.

### Route Impact Analysis
Your agent calculates the percentage of total route time consumed by a single stop.

### Data Integrity Checks
The tool flags malformed or incomplete task data before you run your planning.

## Use Cases

### Route Duration Planning
Use the tool to see how much time a specific stop adds to a driver's total shift.

### Resource Management
Check for overlapping assignments to prevent equipment or personnel conflicts.

### Bottleneck Identification
Analyze time components to see if waiting or loading is causing delays.

### Data Cleaning
Run validation checks to find broken task entries before they hit your planning system.

## Benefits

- Converts granular tasks into structured time metrics.
- Identifies resource scheduling conflicts automatically.
- Quantifies the impact of individual stops on total route time.
- Prevents planning errors by validating task data inputs.

## How It Works

Connect your AI client to Vinkius and start querying your logistics data immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your task or visit data to your AI agent.
3. Ask your agent to run specific tools like summary or impact calculations.
4. Review the structured time metrics or conflict alerts returned by the MCP.

## Frequently Asked Questions

**What kind of data does this MCP process?**
It processes granular service tasks, specifically looking at time components like setup, loading, and waiting.

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

**How does it help with resource management?**
It uses the check_resource_overlaps tool to find if any resources are assigned to multiple tasks at the same time.

**Does it help with route optimization?**
Yes, it calculates how much a specific stop impacts the total travel and service time of a route.

**What happens if my task data is messy?**
The validate_task_inputs tool identifies missing or malformed data that would prevent accurate time aggregation.

**How do I check for resource conflicts?**
You can use the `check_resource_overlaps` tool to identify if any resources are double-booked during a specific visit.

**What components are included in the service summary?**
The `get_stop_service_summary` tool provides a breakdown including setup, loading, unloading, queueing, and waiting durations.

**Can I validate my task data before processing?**
Yes, use `validate_task_inputs` to ensure all tasks have the required fields like startTime, endTime, and resourceId.
