# Logistics Repair & Yield Calculator AI Agent Connect

> Logistics Repair & Yield Calculator MCP helps you run the numbers on refurbishment cycles. Your AI client uses these tools to check defect data, track how much of your facility is being used, and calculate the actual profit or loss for every batch of returned goods.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_2qDVRY9vKyEbkEv9rcrstgqI95tvA3AT11hAZI6H/ai-agent-connect
- **Tags:** refurbishment, yield, logistics, recovery, capacity

## Description

You can use this MCP to handle the heavy lifting of refurbishment math. Instead of manually calculating margins or checking if your facility is over capacity, you give that data to your AI agent. It uses these tools to determine if a batch of returned units is actually worth the labor and parts cost. You can quickly see if a specific defect pattern is eating your margins or if you have enough floor space to take on a new shipment. It handles the math for net recovery, factoring in everything from disposal fees to resale value. This makes it easy to decide which repair cycles to greenlight and which to scrap.

## Tools

### validate_defect_integrity
This tool checks that your defect counts actually match the total number of units you reported.

### get_capacity_utilization
Use this to see how much of your facility's resources are currently tied up by a specific batch.

### get_financial_impact_summary
This tool provides a high-level look at the financial risks and rewards of a repair cycle.

### get_recovery_metrics
This tool calculates core performance indicators for any refurbishment batch you are processing.

## Prompt Examples

**Prompt:** 
```
Calculate the recovery metrics for 500 returned units with 200 minor defects, 150 major defects, and 150 terminal defects. Repair capacity is 300. Labor is $10, parts are $15, failure rate is 0.05, resale is $100, and disposal is $5. Use standard yield rule.
```

**Response:** 
```
The batch resulted in 285 recoverable units with a yield of 57%. The net recovery for this batch is $23,375.
```

**Prompt:** 
```
What is the current capacity utilization if I have 400 repairable units and my total capacity is 500?
```

**Response:** 
```
The facility utilization is 80%, with 100 units of remaining capacity.
```

**Prompt:** 
```
Verify if my defect distribution is consistent for 100 total units where I have 40 screen cracks and 60 battery failures.
```

**Response:** 
```
The defect distribution is consistent with the total number of units reported.
```

## Capabilities

### Yield Calculation
Your agent calculates how many units from a batch are actually recoverable.

### Financial Risk Assessment
The AI determines the net profit or loss after parts and labor costs.

### Capacity Monitoring
Your agent checks if a new batch will exceed your facility's current limits.

### Data Validation
The tool ensures defect counts align with the total unit count provided.

## Use Cases

### Batch Profitability Checks
Run a quick check on a new shipment of returns to see if the resale value covers the repair costs.

### Facility Load Planning
Check if your current repair queue will leave enough room for an unexpected influx of units.

### Defect Auditing
Verify that the breakdown of minor and major defects matches the total inventory received.

### Margin Analysis
Compare different repair strategies to see which yields the highest net recovery.

## Benefits

- Automates the math for net recovery and yield percentages.
- Identifies financial risks before you commit labor to a batch.
- Prevents over-scheduling by monitoring facility capacity.
- Catches errors in defect reporting through automated validation.

## How It Works

You connect your preferred AI client to the Vinkius-hosted MCP and start asking questions about your logistics data.

1. Connect your AI client to Vinkius.
2. Provide your batch data, such as unit counts and defect types.
3. Ask your agent to run specific calculations or summaries.
4. Review the calculated metrics and financial impacts directly in your chat interface.

## Frequently Asked Questions

**What AI clients can I use with this MCP?**
You can use this MCP with Claude Desktop, Cursor, Windsurf, or VS Code.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You just connect your client and it is ready to use.

**Can this tool help with facility planning?**
Yes, the get_capacity_utilization tool allows your agent to analyze how much of your facility's resources are being used.

**How does it handle repair costs?**
The tool factors in labor, parts, and disposal costs to calculate the final net recovery for a batch.

**Is the data validation automatic?**
Yes, the validate_defect_integrity tool ensures your defect data is consistent with your total unit counts.

**How do I calculate the net profit for a batch of returns?**
You can use the `get_recovery_metrics` tool. It calculates the net recovery by subtracting labor, parts, and disposal costs from the total resale value of successfully repaired units.

**Can I check if my repair facility is over capacity?**
Yes, the `get_capacity_utilization` tool provides the utilization percentage and the number of units in the unprocessed backlog.

**How does the tool handle failed repairs?**
The `get_recovery_metrics` tool accounts for the `failureProbability` to determine the final number of saleable units and includes disposal costs for failed units.
