# Wine Color Density Calculator AI Agent Connect

> Calculates wine colorimetric properties, intensity, and visual perception from spectrophotometric data.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_3DMGcLs5sslOe1Lbd4FvOp0FtiS9iyNxRJ4OuAXQ/ai-agent-connect
- **Tags:** spectrophotometry, colorimetry, wine, cielab, enology

## Description

This MCP server provides specialized tools for enologists and color scientists to transform raw spectrophotometric absorbance data into meaningful colorimetric metrics. By analyzing absorbance at 420nm, 520nm, and 620nm, the server can calculate color density and hue using `get_color_density_and_hue`. It also converts data into the CIELAB color space via `get_cielab_coordinates` for standardized comparison. Advanced features include determining color intensity and accounting for anthocyanin polymerization effects with `get_intensity_and_polymerization_effect`. Finally, the `predict_visual_perception` tool translates mathematical values into human-readable visual categories like 'Deep Ruby' or 'Pale Straw'.

## Tools

### get_cielab_coordinates
Converts spectrophotometric data into the CIELAB color space

### get_color_density_and_hue
Calculates the basic colorimetric metrics used to characterize wine shade and tint

### get_intensity_and_polymerization_effect
Determines the color intensity and applies a correction factor based on anthocyanin polymerization

### predict_visual_perception
Translates mathematical color data into a human-readable description of the wine's appearance

## Prompt Examples

**Prompt:** 
```
Calculate the color density and hue for absorbance values: 420nm=0.5, 520nm=0.3, 620nm=0.1.
```

**Response:** 
```
The color density is 0.8 and the hue is 1.667.
```

**Prompt:** 
```
What is the visual perception for a wine with density 1.2, hue 1.5, and L* of 35?
```

**Response:** 
```
The wine is categorized as Deep Ruby.
```

**Prompt:** 
```
Convert these absorbance values to CIELAB: 420nm=0.4, 520nm=0.2, 620nm=0.1.
```

**Response:** 
```
The CIELAB coordinates are L* 45.2, a* 32.1, b* 12.5.
```

## Frequently Asked Questions

**What wavelengths are required for analysis?**
The analysis requires absorbance measurements at three specific wavelengths: 420nm, 520nm, and 620nm.

**How does the tool handle anthocyanin polymerization?**
The `get_intensity_and_polymerization_effect` tool applies a correction factor to account for how pigment polymerization shifts absorbance ratios.

**Can I get CIELAB coordinates?**
Yes, you can use the `get_cielab_coordinates` tool to obtain L*, a*, and b* values from your absorbance data.
