# Pigging Frequency Optimizer AI Agent Connect

> Optimize pipeline pigging intervals and select cleaning tools based on deposition rates and risk.

## Overview
- **Category:** oil-and-gas
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ghLebwgGSQWUn1JY3HM5I25QxQwFJUrLOmSv8jhb/ai-agent-connect
- **Tags:** pigging, pipeline, deposition, maintenance, integrity

## Description

This MCP server provides specialized tools for pipeline integrity management. It allows AI agents to calculate the `calculate_optimal_interval` to prevent excessive pressure drops, `estimate_deposit_accumulation` to predict material buildup, `select_cleaning_pig` to choose the right tool for the job, and `evaluate_inspection_readiness` to ensure the pipeline is clean enough for smart pig inspections. By connecting to Vinkius Edge, these tools help prevent stuck pigs and optimize operational costs.

## Tools

### evaluate_inspection_readiness
Checks if the pipeline is clean enough to safely conduct an Inline Inspection (Smart Pig)

### calculate_optimal_interval
Determines the recommended time elapsed between pigging runs to maintain optimal flow and safety

### estimate_deposit_accumulation
Predicts the volume and thickness of material build-up at a specific point in time

### select_cleaning_pig
Recommends the specific type of pig to use based on current deposit conditions

## Prompt Examples

**Prompt:** 
```
What is the recommended pigging interval for a 24-inch pipe with a deposition rate of 0.05 mm/day and a max pressure drop of 5 bar?
```

**Response:** 
```
The recommended optimal interval is 45 days to maintain the pressure drop within the 5 bar limit.
```

**Prompt:** 
```
How much wax has accumulated in a 12-inch pipe if the deposition rate is 0.02 mm/day and it has been 30 days since the last pigging?
```

**Response:** 
```
The expected deposit thickness is 0.6 mm.
```

**Prompt:** 
```
Is the pipeline ready for a smart pig inspection if the current deposit is 0.4 mm and the sensor sensitivity is 0.5?
```

**Response:** 
```
No, the pipeline is not ready. You should perform a cleaning run in approximately 5 days to reduce thickness below the sensitivity threshold.
```

## Frequently Asked Questions

**How does the tool determine the pigging interval?**
The `calculate_optimal_interval` tool uses the pipeline diameter, deposition rate, and maximum allowable pressure drop to find the shortest time that maintains safe flow conditions.

**Can I check if my pipeline is ready for a smart pig?**
Yes, you can use `evaluate_inspection_readiness` to check if the current deposit thickness is low enough for the smart pig's sensors to function correctly.

**How do I choose the right cleaning pig?**
The `select_cleaning_pig` tool recommends a pig type by analyzing the expected deposit thickness and the current pipeline condition.
