# Environmental Geoscience Stream Reoxygenation Calculator AI Agent Connect

> Environmental Geoscience Stream Reoxygenation Calculator uses the Streeter-Phelps model to simulate how dissolved oxygen levels change in streams. It accounts for biological deoxygenation and atmospheric reaeration, applying temperature-dependent scaling to keep your models physically accurate. Your AI client can now project oxygen deficit profiles over time or distance using professional-grade computational tools.

## Overview
- **Category:** environmental-science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_TglMnNbRDHsFjV38Jl3QPabonHsrZypFCpwxhY59/ai-agent-connect
- **Tags:** dissolved-oxygen, streeter-phelps, fluvial-modeling, water-quality, reoxygenation

## Description

You can now run complex fluvial modeling directly through your AI client. This MCP uses the Streeter-Phelps model to simulate the relationship between biological oxygen demand and atmospheric reaeration. It calculates how dissolved oxygen levels fluctuate in a stream as it moves downstream or over time. Because the engine applies temperature-dependent scaling to its coefficients, the results reflect real-world physical conditions rather than just theoretical math. You can use it to map out oxygen deficit curves, find specific gain and loss rates at any given point, or check if your input parameters fall within realistic ecological bounds. It's a specialized tool for water quality modeling that turns your agent into a geoscience specialist.

## Tools

### calculate_instantaneous_rates
Use this to find the specific rates of oxygen gain and loss at a single known state. It provides the immediate net change in oxygen levels.

### calculate_oxygen_deficit_curve
This tool projects the oxygen deficit profile across a specific duration or distance. It maps how the deficit evolves over the modeled path.

### get_model_metadata
This tool retrieves environmental constants and model-domain flags. It provides the necessary data to validate your specific simulation.

### validate_input_parameters
This tool checks if your provided coefficients and concentrations are physically plausible. It ensures your model stays within realistic ecological bounds.

## Prompt Examples

**Prompt:** 
```
Calculate the oxygen deficit curve for an initial deficit of 2.0 mg/L, reaeration coefficient of 0.5, deoxygenation coefficient of 0.2, saturation of 9.0, temperature of 20, and a duration of 10 days.
```

**Response:** 
```
The oxygen deficit starts at 2.0 mg/L and reaches a critical deficit of 2.45 mg/L at day 3.2 before gradually declining as reaeration overtakes deoxygenation.
```

**Prompt:** 
```
What are the instantaneous reaeration and deoxygenation rates for a current deficit of 1.5 mg/L with a reaeration coefficient of 0.4 and deoxygenation coefficient of 0.1 at 15 degrees Celsius?
```

**Response:** 
```
At a deficit of 1.5 mg/L, the temperature-adjusted reaeration rate is 0.54 mg/L/day and the deoxygenation rate is 0.12 mg/L/day, resulting in a net gain of 0.42 mg/L/day.
```

**Prompt:** 
```
Check if a reaeration coefficient of 0.01 and deoxygenation coefficient of 0.8 are valid for a standard stream.
```

**Response:** 
```
The parameters are invalid; a deoxygenation coefficient of 0.8 is significantly higher than typical ecological bounds for standard stream environments.
```

## Capabilities

### Deficit Curve Projection
Your agent uses this to map how oxygen deficits change over time or distance.

### Rate Determination
The AI calculates specific instantaneous gain and loss rates for any given state.

### Parameter Validation
Your client checks input coefficients against realistic ecological limits to prevent errors.

### Temperature Scaling
The engine automatically adjusts coefficients based on temperature for physical accuracy.

### Metadata Retrieval
The agent pulls environmental constants to ensure model consistency.

## Use Cases

### Impact Assessment
Model how a point source discharge will affect dissolved oxygen levels downstream.

### Regulatory Compliance
Verify if projected oxygen deficits stay within permitted environmental limits.

### Stream Health Monitoring
Compare real-world oxygen measurements against simulated deficit curves.

### Parameter Sensitivity Testing
Check how changing reaeration or deoxygenation coefficients alters the oxygen profile.

## Benefits

- Temperature-dependent scaling ensures physical accuracy in fluvial models.
- Automated parameter validation prevents unrealistic ecological inputs.
- Direct Streeter-Phelps modeling through a chat interface.
- Instantaneous rate calculations reduce manual math steps.

## How It Works

You connect the MCP to your preferred AI client and start running models through natural language.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your stream parameters like temperature, coefficients, and initial deficit.
3. The agent uses the Streeter-Phelps engine to process the data.
4. Receive detailed results like deficit curves or instantaneous rates.

## Frequently Asked Questions

**What model does this MCP use for oxygen calculations?**
This MCP uses the Streeter-Phelps model to simulate dissolved oxygen dynamics in fluvial systems.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client including Claude, Cursor, and Windsurf.

**How does temperature affect the results?**
The engine applies temperature-dependent scaling to the coefficients to ensure the simulation remains physically accurate.

**Does the MCP check if my inputs are realistic?**
Yes, the validate_input_parameters tool checks if your coefficients and concentrations are within plausible ecological bounds.

**What kind of outputs can I expect?**
You can get oxygen deficit curves over time or distance, as well as specific instantaneous gain and loss rates.

**How does the model handle temperature changes?**
The model applies temperature correction to both reaeration and deoxygenation coefficients to reflect how thermal states affect biological and physical rates.

**Can I model oxygen deficit over distance instead of time?**
Yes, by using the `isSpatial` parameter in `calculate_oxygen_deficit_curve`, you can simulate changes along a stream reach based on distance.

**What is the purpose of the validation tool?**
The `validate_input_parameters` tool checks if your provided coefficients and saturation concentrations are physically plausible for standard stream environments.
