# Environmental Geoscience Reservoir Routing Calculator AI Agent Connect

> Environmental Geoscience Reservoir Routing Calculator lets your AI client simulate how water moves through a reservoir. You can route time-series inflow through specific storage-elevation and storage-discharge relationships to predict water levels, outflows, and spill volumes. It handles the heavy math for hydrograph routing, peak attenuation, and mass balance validation.

## Overview
- **Category:** environmental-science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_C6Kt1lI2tCBMUVpE6UaRbC4UYBpNECDQzjqNlphp/ai-agent-connect
- **Tags:** reservoir, routing, hydrograph, water-management, hydrology

## Description

You can now run complex hydrological simulations directly through your AI client. This MCP gives your agent the ability to model reservoir behavior by routing inflow hydrographs through defined storage and discharge parameters. Instead of manually calculating water level shifts, you tell your agent the inflow series and the reservoir characteristics, and it handles the routing math. 

You can use it to predict how a specific inflow event will impact downstream discharge or how much water a reservoir will hold at a certain elevation. It includes built-in checks to ensure your simulations stay physically consistent through mass balance validation. Whether you are measuring how much a reservoir dampens a flood peak or checking storage capacity at a target water level, this MCP provides the specialized tools to turn raw inflow data into actionable hydrological profiles.

## Tools

### get_reservoir_state_at_elevation
This tool determines the specific storage volume and potential discharge at a target water surface elevation.

### validate_mass_balance
This tool checks the numerical integrity of your routing. It verifies that the total water balance is maintained throughout the simulation.

### run_reservoir_routing
This tool executes a complete reservoir routing simulation over your chosen time duration. It processes the inflow series to determine how the reservoir responds over time.

### calculate_peak_attenuation
Use this to find the reduction in peak flow between your inflow and outflow hydrographs. It measures how effectively the reservoir dampens incoming surges.

## Prompt Examples

**Prompt:** 
```
Run a reservoir routing simulation with an inflow series of [100, 150, 200, 150, 100], a time step of 1, initial storage of 500, and a fixed outlet rule.
```

**Response:** 
```
The simulation is complete. The reservoir storage transitioned from 500 to 550, with a peak outflow of 120 and a peak attenuation of 16.67%.
```

**Prompt:** 
```
What is the peak attenuation for an inflow of [50, 100, 50] and an outflow of [30, 60, 30]?
```

**Response:** 
```
The peak attenuation is 40.0%.
```

**Prompt:** 
```
Check the mass balance for an initial storage of 1000, inflows of [200, 200], outflows of [150, 150], and a final storage of 1100.
```

**Response:** 
```
The mass balance residual is 0.0, indicating a perfect balance.
```

## Capabilities

### Hydrograph Routing
Your agent uses this to simulate water movement through a reservoir over time.

### Peak Flow Analysis
The AI calculates how much a reservoir reduces the intensity of incoming flood peaks.

### Mass Balance Verification
Your agent checks that inflow, outflow, and storage changes remain mathematically consistent.

### Elevation State Lookup
The AI finds specific storage and discharge values for a given water level.

## Use Cases

### Flood Peak Attenuation
Calculate how much a specific reservoir will reduce a flood peak before it reaches downstream areas.

### Storage Capacity Planning
Determine the exact storage volume available at a specific target water elevation.

### Simulation Validation
Run a mass balance check to ensure your routing model hasn't drifted due to numerical errors.

### Inflow Response Modeling
Predict how a reservoir's outflow will change in response to a specific time-series of inflow.

## Benefits

- Automates the math for reservoir routing simulations.
- Provides instant verification of mass balance integrity.
- Calculates peak attenuation without manual hydrograph comparison.
- Connects directly to your existing AI-driven technical workflow.

## How It Works

You connect the MCP to your client and then provide the hydrological parameters via natural language.

1. Connect your MCP-compatible client to Vinkius.
2. Provide the inflow hydrograph and reservoir characteristics to your agent.
3. The agent invokes the necessary routing or calculation tools.
4. The agent returns the simulated water levels, outflows, or attenuation percentages.

## Frequently Asked Questions

**What can this MCP do for reservoir modeling?**
It allows your AI client to perform reservoir routing, calculate peak attenuation, validate mass balance, and find storage states at specific elevations.

**How do I use this with Claude or Cursor?**
You connect to the Vinkius catalog once, and then you can use the tools directly within Claude, Cursor, Windsurf, or any other MCP-compatible client.

**Can it verify if my simulation is accurate?**
Yes, you can use the validate_mass_balance tool to check if the total water balance is maintained during the simulation.

**Does it support time-series data?**
Yes, the routing tools are designed to process time-series inflow hydrographs.

**What is peak attenuation?**
It is the reduction in the peak flow rate between the inflow and the outflow of the reservoir.

**How does the routing simulation handle mass balance?**
The simulation follows the fundamental mass balance principle where the change in storage equals the difference between total inflow and total outflow. You can use `validate_mass_balance` to verify this integrity.

**Can I calculate the reduction in peak flow?**
Yes, the `calculate_peak_attenuation` tool calculates the percentage reduction of the peak flow from the inflow hydrograph to the outflow hydrograph.

**How do I find the storage at a specific water level?**
You can use the `get_reservoir_state_at_elevation` tool, which interpolates between your provided storage-elevation data points to find the exact storage and discharge.
