# Environmental Geoscience Contaminant Calculator AI Agent Connect

> Environmental Geoscience Contaminant Calculator MCP handles the heavy lifting for soil contamination modeling. It calculates how chemical contaminants partition between aqueous and sorbed phases using specific soil and chemical parameters. Your AI client can use it to determine exact mass distributions, check the geological plausibility of your data, and run sensitivity analyses on critical variables.

## Overview
- **Category:** environmental-science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_tNDMFUFR479DHyT67KQ2s4lifUD5kxK7ObGF0TBq/ai-agent-connect
- **Tags:** geochemistry, soil-science, contaminant-modeling, mass-partitioning, environmental-analysis

## Description

You can use this MCP to model how contaminants move through soil matrices. Instead of manual calculations, you provide your agent with parameters like aqueous concentration, soil mass, and the distribution coefficient to get immediate results for both liquid and solid phases. It acts as a specialized math bridge for your environmental modeling workflows. You can check if your input data makes sense geologically or run sensitivity tests to see which variables drive the most change in total contaminant mass. It's built to handle the specific unit conversions and mass partitioning math required for precise geochemistry work.

## Tools

### calculate_contaminant_partitioning
This tool determines the mass distribution of a contaminant between water and soil phases. It uses your provided chemical and soil parameters to split the mass.

### get_unit_conversions
This tool provides standard conversion factors for environmental units. It helps your agent standardize data for consistent modeling.

### validate_soil_properties
This tool checks if your soil sample properties are geologically plausible. It flags errors like water content exceeding porosity.

### analyze_parameter_sensitivity
This tool identifies which input variable has the largest impact on the total contaminant mass. It helps you find the most critical drivers in your model.

## Prompt Examples

**Prompt:** 
```
Calculate the contaminant partitioning for a soil with 100kg mass, 1.5 g/cm3 bulk density, 0.4 porosity, 0.2 water content, 5 mg/L aqueous concentration, and a Kd of 2.0.
```

**Response:** 
```
The dissolved mass is 20.0 mg and the sorbed mass is 300.0 mg, resulting in a total mass of 320.0 mg with a partition fraction of 0.9375.
```

**Prompt:** 
```
Which parameter is most sensitive for a contaminant with a high distribution coefficient?
```

**Response:** 
```
The distribution coefficient is the most sensitive parameter, with a sensitivity index of 0.85.
```

**Prompt:** 
```
Check if a soil with 1.2 g/cm3 bulk density, 0.5 porosity, and 0.6 water content is valid.
```

**Response:** 
```
The soil properties are invalid because the water content (0.6) exceeds the porosity (0.5).
```

## Capabilities

### Mass Partitioning
Your agent calculates the exact mass of contaminants in dissolved and sorbed states.

### Data Validation
The MCP checks soil properties to ensure they are geologically realistic.

### Sensitivity Analysis
Your AI client identifies which input variables most heavily influence the total mass.

### Unit Standardization
The tool converts environmental units to keep your modeling data consistent.

## Use Cases

### Contaminant Modeling
Determine how much of a chemical is dissolved in water versus stuck to soil particles.

### Data Quality Control
Verify that soil porosity and water content values are physically possible before running models.

### Risk Assessment
Use sensitivity analysis to see how changes in the distribution coefficient affect total mass.

### Unit Conversion
Convert various environmental measurements to a standard format for analysis.

## Benefits

- Calculates mass distribution between aqueous and sorbed phases.
- Flags geologically impossible soil property inputs.
- Identifies critical variables through sensitivity indexing.
- Standardizes environmental units for modeling accuracy.

## How It Works

You connect the MCP to your AI client and then provide the soil and chemical parameters.

1. Connect your MCP-compatible client to Vinkius.
2. Provide soil mass, density, and concentration data to your agent.
3. The agent calls the specific calculation or validation tools.
4. The MCP returns the partitioned mass or sensitivity index to your client.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates the mass distribution of contaminants between the water and soil phases, identifies parameter sensitivity, and validates soil properties.

**How does it handle soil data errors?**
The validate_soil_properties tool checks if your inputs are geologically plausible, such as ensuring water content does not exceed porosity.

**Which AI clients can use this MCP?**
You can use this MCP with any compatible client like Claude, Cursor, Windsurf, or VS Code.

**Can it help with unit conversions?**
Yes, the get_unit_conversions tool provides standard conversion factors for common environmental units.

**How do I find the most important variable in my model?**
You can use the analyze_parameter_sensitivity tool to see which input variable has the greatest impact on the total contaminant mass.

**How do I ensure my soil properties are valid for calculation?**
You can use the `validate_soil_properties` tool to check if your bulk density, porosity, and water content are geologically plausible before performing mass calculations.

**Can I determine which input variable most affects my results?**
Yes, the `analyze_parameter_sensitivity` tool identifies which parameter, such as the distribution coefficient or aqueous concentration, has the greatest impact on the total contaminant mass.

**What units are supported for contaminant concentration?**
The server supports standard environmental units like mg/kg, ug/L, and mg/L. You can use `get_unit_conversions` to find the necessary multipliers for your target units.
