# Water Quality Index Calculator AI Agent Connect

> Assess water safety for irrigation and livestock using chemical analysis.

## Overview
- **Category:** agriculture
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_4I9f8ZHstoiVUEhvVsvvzTx6NWZSz0gSmpwgVppS/ai-agent-connect
- **Tags:** irrigation, livestock, water-quality, soil-health, agriculture-tech

## Description

This MCP server provides specialized tools to evaluate water quality for agricultural use. It calculates suitability for irrigation based on FAO guidelines and assesses safety for livestock using established health thresholds. Use `get_irrigation_suitability` to check crop safety, `get_livestock_safety_index` for animal consumption safety, `get_soil_structure_risk` to predict soil degradation, or `get_water_quality_summary` for a complete dual-use report.

## Tools

### get_soil_structure_risk
Analyzes the risk of soil degradation caused by the sodium-to-calcium/magnesium ratio

### get_irrigation_suitability
Determines if water is safe for irrigation based on chemical composition and specific crop sensitivity

### get_livestock_safety_index
Evaluates the safety of water for animal consumption using livestock-specific thresholds

### get_water_quality_summary
Provides a unified high-level report comparing irrigation and livestock needs for a single water sample

## Prompt Examples

**Prompt:** 
```
Is this water safe for sensitive crops? EC: 1.5, SAR: 4, pH: 7.2, Bicarbonate: 50, Chloride: 20, Boron: 0.5
```

**Response:** 
```
The water is rated as Good for sensitive crops. The overall risk score is low, though monitoring chloride levels is recommended.
```

**Prompt:** 
```
Check the livestock safety for water with EC: 2.0, pH: 8.5, Chloride: 150, Nitrate: 10, Boron: 1.0
```

**Response:** 
```
The water is rated as Caution for livestock due to high chloride levels which may affect palatability.
```

**Prompt:** 
```
What is the soil structure risk for SAR: 15, EC: 1.2, Bicarbonate: 100?
```

**Response:** 
```
The sodicity risk is High. This may lead to reduced soil permeability. It is recommended to apply gypsum to mitigate sodium accumulation.
```

## Frequently Asked Questions

**What parameters are required for irrigation assessment?**
To use `get_irrigation_suitability`, you need to provide Electrical Conductivity (EC), Sodium Adsorption Ratio (SAR), pH, bicarbonate, chloride, boron, and the crop sensitivity category.

**Can I check if water is safe for both animals and crops?**
Yes, use the `get_water_quality_summary` tool to receive a unified report that compares irrigation suitability and livestock safety simultaneously.

**How does the tool handle soil degradation risks?**
The `get_soil_structure_risk` tool analyzes the relationship between SAR, EC, and bicarbonate to predict permeability impact and suggest mitigation strategies like applying gypsum.
