# Retaining Wall Drainage Designer AI Agent Connect

> Calculates drainage pipe diameter, gravel filter thickness, and weep hole spacing for retaining walls.

## Overview
- **Category:** construction
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_7hLk0IaXzg3p46vHN8pzQIcEKfXbWAdoCjbhKjEf/ai-agent-connect
- **Tags:** drainage, retaining-wall, hydraulic, civil-engineering, infrastructure

## Description

This MCP server provides specialized engineering calculations to ensure the structural integrity of retaining walls by managing hydrostatic pressure. It allows AI agents to design critical drainage infrastructure, including determining the required `calculate_drain_pipe_diameter` to handle water inflow, calculating the `calculate_gravel_filter_thickness` to prevent soil migration, and determining `calculate_weep_hole_spacing` for excess water exit. Users can also use `evaluate_drainage_safety_margin` to assess the overall design against clogging and pressure risks.

## Tools

### calculate_drain_pipe_diameter
Determines the required diameter of the perforated drainage pipe to accommodate the expected water volume

### calculate_weep_hole_spacing
Determines the optimal distance between weep holes in the retaining wall face

### evaluate_drainage_safety_margin
Provides an assessment of the overall drainage design's adequacy against clogging and pressure risks

### calculate_gravel_filter_thickness
Calculates the necessary thickness of the gravel filter layer to prevent soil migration and clogging

## Prompt Examples

**Prompt:** 
```
Calculate the required drainage pipe diameter for a wall that is 3 meters high and 10 meters long with a water inflow rate of 0.05 m3/s.
```

**Response:** 
```
The required drainage pipe diameter is 250 mm, providing a sufficient flow capacity for the specified inflow.
```

**Prompt:** 
```
What is the recommended gravel filter thickness for a 5m high, 20m long wall with a backfill permeability of 0.001 m/s and an inflow rate of 0.1 m3/s?
```

**Response:** 
```
The recommended gravel filter thickness is 300 mm, with a low clogging risk level.
```

**Prompt:** 
```
Determine the weep hole spacing for a 2m high and 15m long wall with a water inflow rate of 0.02 m3/s.
```

**Response:** 
```
The optimal weep hole spacing is 1200 mm, requiring a total of 13 weep holes along the wall face.
```

## Frequently Asked Questions

**What parameters are required for pipe diameter calculation?**
To use `calculate_drain_pipe_diameter`, you need to provide the wall height in meters, the total wall length in meters, and the water inflow rate.

**How does the tool prevent clogging in the drainage system?**
The tool uses `calculate_gravel_filter_thickness` to determine the necessary thickness of the gravel layer based on backfill permeability, ensuring soil particles do not migrate and block the system.

**Can I assess the overall safety of my drainage design?**
Yes, you can use `evaluate_drainage_safety_margin` by providing the designed pipe diameter, filter thickness, and soil permeability to receive a safety factor and status assessment.
