# Wine Bottle Variation Predictor AI Agent Connect

> Predicts bottle-to-bottle variation and quality windows using stochastic oxygen ingress modeling.

## Overview
- **Category:** agriculture
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_nOxEfZ0PPXcaKiST2lwtDqQu2TLxPOOKn14dWLWC/ai-agent-connect
- **Tags:** wine, oxygen, prediction, stochastic, quality-control

## Description

This MCP server provides a predictive analysis engine to model how oxygen ingress affects wine quality over time. By accounting for closure lot variation, fill height, and storage orientation, it helps predict the expected variation in oxygen exposure and identifies the optimal drinking window for a batch of bottles. Use `predict_variation_at_age` to calculate quality deviation, `calculate_quality_outliers` to find the percentage of bottles outside quality limits, `get_optimal_drinking_window` to identify peak quality years, and `simulate_storage_impact` to compare horizontal versus vertical storage effects.

## Tools

### calculate_quality_outliers
Determines the percentage of bottles in a batch that are expected to fall outside the acceptable quality limits at a given time

### get_optimal_drinking_window
Identifies the time range during which the most bottles are expected to be in their peak quality state

### predict_variation_at_age
Calculates the expected range of oxygen exposure and quality deviation for a group of bottles at a specific point in time

### simulate_storage_impact
Compares how different storage orientations affect the rate of variation for a specific closure type

## Prompt Examples

**Prompt:** 
```
What is the expected quality deviation for natural cork bottles stored horizontally after 10 years?
```

**Response:** 
```
At 10 years, the expected quality deviation for natural cork bottles stored horizontally is 0.12 with a mean oxygen exposure of 4.5 mg/L.
```

**Prompt:** 
```
How many bottles will likely be bad after 20 years if I use screwcaps?
```

**Response:** 
```
With screwcap closures, the predicted percentage of bottles falling outside the quality threshold after 20 years is 0.05%.
```

**Prompt:** 
```
Compare horizontal and vertical storage for natural cork at 5 years.
```

**Response:** 
```
For natural cork at 5 years, horizontal storage results in a variation of 0.45, while vertical storage results in 0.32, yielding an impact ratio of 1.41.
```

## Frequently Asked Questions

**How does storage position affect the prediction?**
Storage position (horizontal vs vertical) changes the contact surface area between the liquid and the closure, which directly influences the oxygen ingress rate modeled by the tools.

**Can I use this to find the best time to drink a specific vintage?**
Yes, by using `get_optimal_drinking_window`, you can identify the specific age range where the majority of bottles are predicted to be in their peak quality state.

**What is the purpose of the `calculate_quality_outliers` tool?**
The `calculate_quality_outliers` tool determines the percentage of bottles in a batch expected to fall outside acceptable oxygen exposure limits at a given age.
