# Wine Loss Tracking System AI Agent Connect

> Monitor wine production efficiency by tracking volume losses across all stages.

## Overview
- **Category:** agriculture
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_fgyVSnwTLbYs1oAJa3efwDdmu0pnL06gvvBsOUdD/ai-agent-connect
- **Tags:** wine, production, mass-balance, inventory, efficiency

## Description

This MCP server provides specialized tools for monitoring wine volume fluctuations throughout the production cycle. Using mass balance principles, it helps winemakers identify efficiency leaks by calculating losses during specific stages like `racking`, `filtration`, `bottling`, or `evaporation`. You can use `calculate_cumulative_metrics` to determine total yield and `identify_high_loss_operations` to flag stages where losses exceed acceptable thresholds. It also includes `validate_mass_balance` to ensure all recorded data is physically consistent.

## Tools

### calculate_cumulative_metrics
Calculate total loss percentage and final yield for a batch

### get_loss_by_operation
Calculate volume lost during a specific production step

### identify_high_loss_operations
Identify specific steps where losses exceed acceptable thresholds

### validate_mass_balance
Validate if the recorded data satisfies the mass balance principle

## Prompt Examples

**Prompt:** 
```
How much volume was lost during the filtration step? I had 1000L before and 980L after.
```

**Response:** 
```
The volume lost during filtration was 20L.
```

**Prompt:** 
```
What is the final yield for a batch that started with 5000L and ended with 4500L, with a total loss of 500L?
```

**Response:** 
```
The final yield for this batch is 90%.
```

**Prompt:** 
```
Are any of my operations exceeding the loss threshold? Racking lost 5L (threshold 2L), Filtration lost 1L (threshold 2L).
```

**Response:** 
```
The racking operation is flagged as a high-loss operation with an excess loss of 3L.
```

## Frequently Asked Questions

**How do I check if my production data is accurate?**
You can use the `validate_mass_balance` tool to verify that your starting volume, recorded losses, and final volume align with the mass balance principle.

**Can I identify which specific step is causing the most waste?**
Yes, the `identify_high_loss_operations` tool compares your recorded losses against predefined thresholds to flag excessive losses in specific steps.

**What metrics can I calculate for a batch?**
The `calculate_cumulative_metrics` tool provides the total lost volume, the cumulative loss percentage, and the final yield percentage for your production batch.
