# Mud Weight Window Calculator AI Agent Connect

> Calculates safe drilling fluid density ranges based on geomechanical constraints.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_tn049Yc9eW7at0EEMEaCLpYzDky2SwMyhvet007K/ai-agent-connect
- **Tags:** drilling, geomechanics, mud-weight, oil-and-gas, wellbore-stability

## Description

This MCP server provides specialized tools for drilling engineers to determine the safe operational range for drilling fluid density. It calculates the primary window using `calculate_basic_window` by analyzing pore pressure, fracture gradient, and collapse pressure. The server also allows for advanced adjustments, including `apply_thermal_adjustments` for temperature-induced changes and `apply_chemical_adjustments` for chemical reactivity effects. Finally, use `validate_operational_safety` to verify if a specific mud weight is safe for the wellbore.

## Tools

### apply_chemical_adjustments
Adjusts the window to account for chemical interactions

### apply_thermal_adjustments
Modifies the basic window to account for temperature-induced changes

### calculate_basic_window
Determines the primary drilling window based on standard pressure limits

### validate_operational_safety
Evaluates if a proposed mud weight is safe within the calculated window

## Prompt Examples

**Prompt:** 
```
Calculate the basic mud weight window for a pore pressure of 10.5, a fracture gradient of 14.2, and a collapse pressure of 11.0.
```

**Response:** 
```
The minimum mud weight is 11.0, the maximum mud weight is 14.2, and the safe window is 3.2.
```

**Prompt:** 
```
Is a mud weight of 12.5 safe for a window with a minimum of 11.0 and a maximum of 14.2?
```

**Response:** 
```
Yes, the proposed mud weight is safe. The margin to collapse is 1.5 and the margin to fracture is 1.7.
```

**Prompt:** 
```
Adjust a window (min 11.0, max 14.2) for a bottom hole temperature of 150 degrees with a coefficient of 0.01.
```

**Response:** 
```
The adjusted minimum mud weight is 12.5, the adjusted maximum mud weight is 12.7, and the adjusted safe window is 0.2.
```

## Frequently Asked Questions

**How do I calculate the initial drilling window?**
You can use the `calculate_basic_window` tool by providing the pore pressure, fracture gradient, and collapse pressure.

**Can I account for temperature changes in the wellbore?**
Yes, the `apply_thermal_adjustments` tool allows you to modify the basic window based on bottom hole temperature and a temperature coefficient.

**How can I check if a specific mud weight is safe?**
Use the `validate_operational_safety` tool with your calculated window and the proposed mud weight to receive a safety report.
