# Logistics Shipment Traceability Calculator AI Agent Connect

> Logistics Shipment Traceability Calculator MCP lets your AI client audit carrier event data against expected milestones. It identifies missing scans, detects logical errors in shipment sequences, and pinpoints exactly where shipments go dark in your supply chain.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_x5KVLB8cnGWj1kYsevwRfkcxG4teWRhh1MpJDXYa/ai-agent-connect
- **Tags:** traceability, shipment-tracking, logistics-kpi, supply-chain-visibility, carrier-data

## Description

You can use this MCP to turn messy carrier event logs into clear visibility metrics. Instead of manually checking timestamps, you let your agent compare actual transit data against your required supply chain milestones. It identifies where scans are missing and where shipments enter untracked periods. You can quickly spot if a carrier reported a delivery before a pickup or if a shipment has stalled between two specific hubs. It's built to find the holes in your data so you can fix your visibility before a delay becomes a crisis.

## Tools

### calculate_gap_analysis
This tool isolates and measures the specific time windows where a shipment was completely untracked.

### calculate_traceability_metrics
This tool computes a full set of traceability KPIs for any specific shipment you provide.

### get_last_known_status
This tool identifies the most recent recorded state of a shipment.

### verify_event_sequence
This tool checks if the provided shipment events follow the logical flow of your supply chain.

## Prompt Examples

**Prompt:** 
```
Calculate the traceability metrics for shipment ID SHP-123 with these events: [{'timestamp': '2023-10-01T10:00:00Z', 'eventType': 'Picked Up', 'location': 'Warehouse A'}], expected milestones: [{'name': 'Picked Up', 'priority': 1}], and hierarchy: ['Picked Up', 'In Transit', 'Delivered'].
```

**Response:** 
```
{ "milestoneCoverage": 1.0, "scanCompleteness": 1.0, "elapsedGaps": [], "lastKnownEvent": { "timestamp": "2023-10-01T10:00:00Z", "eventType": "Picked Up", "location": "Warehouse A" }, "exceptionDuration": 0, "traceabilityScore": 1.0 }
```

**Prompt:** 
```
What is the last known status of shipment SHP-999 based on these events: [{'timestamp': '2023-10-05T14:00:00Z', 'eventType': 'Arrived at Facility', 'location': 'Chicago Hub'}]?
```

**Response:** 
```
{ "timestamp": "2023-10-05T14:00:00Z", "eventType": "Arrived at Facility", "location": "Chicago Hub" }
```

**Prompt:** 
```
Check if these events follow the correct sequence: [{'timestamp': '2023-10-01T12:00:00Z', 'eventType': 'Delivered', 'location': 'Customer Site'}, {'timestamp': '2023-10-01T08:00:00Z', 'eventType': 'Picked Up', 'location': 'Warehouse'}].
```

**Response:** 
```
{ "isValid": false, "violations": ["Delivered event occurred before Picked Up event"] }
```

## Capabilities

### Gap Detection
Your agent identifies periods where no tracking data exists for a shipment.

### KPI Computation
The MCP calculates milestone coverage and scan completeness scores.

### Sequence Validation
Your AI client checks if carrier events follow a logical supply chain order.

### Status Retrieval
The tool pulls the most recent event to show current shipment position.

## Use Cases

### Carrier Performance Audits
Compare actual scan data against expected milestones to see which carriers have the most visibility gaps.

### Identifying Dark Periods
Find out exactly how long a shipment went without a scan during long-haul transit.

### Data Integrity Checks
Verify that shipment events are being reported in the correct chronological order.

### Real-time Status Monitoring
Get the most recent shipment status by feeding event logs to your agent.

## Benefits

- Identifies untracked time windows in shipment transit.
- Detects logical errors in carrier event reporting.
- Calculates specific traceability scores for shipment performance.
- Pinpoints the exact location of the last known shipment event.

## How It Works

Connect your AI client to Vinkius to start analyzing shipment data immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your shipment event logs and expected milestones to your agent.
3. The agent calls the specific tool needed for your analysis.
4. Receive structured KPI reports or error logs directly in your chat interface.

## Frequently Asked Questions

**How do I use this MCP with Claude or Cursor?**
You connect your client to Vinkius once. After that, the tools are available for your agent to call during your normal workflow.

**What kind of data does this MCP need?**
It needs shipment event logs, including timestamps, event types, and locations, along with your expected supply chain milestones.

**Can it find missing scans?**
Yes, the gap analysis tool specifically measures the periods where a shipment was untracked.

**Does it check for incorrect event orders?**
Yes, the verify event sequence tool checks if the provided events follow a logical supply chain flow.

**Where is the data hosted?**
Vinkius hosts and manages the MCP, so you don't need to run any local infrastructure to use it.

**How do I calculate the overall reliability of my shipment?**
You can use the `calculate_traceability_metrics` tool to generate a comprehensive report that includes a traceability score based on coverage and gaps.

**Can I detect missing tracking data periods?**
Yes, the `calculate_gap_analysis` tool specifically identifies 'dark periods' where no tracking data was reported for a duration exceeding your specified threshold.

**How does the tool validate the order of shipment events?**
The `verify_event_sequence` tool checks the provided events against a defined event hierarchy to ensure they follow the logical flow of the supply chain.
