# Tank Free-Surface Moment Calculator AI Agent Connect

> Tank Free-Surface Moment Calculator handles the complex naval architecture math required to manage the destabilizing effects of partially filled tanks. Your AI client uses this MCP to calculate individual tank moments, determine total vessel correction, and find the final corrected metacentric height for accurate stability assessments.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_A0RzBABDXag0o1pYUFrvexKgjNs9rWB6ORm429ZV/ai-agent-connect
- **Tags:** naval-architecture, stability, marine-engineering, physics, vessel-calculations

## Description

When tanks aren't full, the shifting liquid creates a free surface effect that changes how a ship behaves. This MCP gives your AI agent the specific math tools needed to account for that movement. Instead of manually calculating how liquid sloshing affects your center of gravity, you can hand the raw tank data to your AI client and let it handle the physics. It calculates the individual moments for each tank, sums them up to find the total virtual rise in the center of gravity, and then applies that to your metacentric height. This ensures your stability calculations reflect the real-world physics of a vessel in motion, not only a static model. It's built for engineers who need fast, accurate stability checks without the manual arithmetic errors.

## Tools

### calculate_corrected_gm
This tool finds the final metacentric height after the free surface effect is applied.

### calculate_total_correction
Use this to find the total virtual rise in the center of gravity for the entire vessel.

### get_stability_summary
This tool provides a complete overview of the vessel's stability status based on displacement and tank moments.

### get_tank_moment
This tool calculates the specific free surface moment for a single tank.

## Prompt Examples

**Prompt:** 
```
Calculate the free surface moment for tank T-01 with a surface area of 50 and liquid density of 1.025.
```

**Response:** 
```
{"tankId": "T-01", "freeSurfaceMoment": 51.25}
```

**Prompt:** 
```
What is the corrected GM if the original GM is 1.5 and the virtual rise is 0.2?
```

**Response:** 
```
{"originalGM": 1.5, "virtualRise": 0.2, "correctedGM": 1.3}
```

**Prompt:** 
```
Provide a stability summary for a vessel with 10000 displacement, original GM of 1.2, and tank moments: [{'tankId': 'T1', 'freeSurfaceMoment': 100}, {'tankId': 'T2', 'freeSurfaceMoment': 150}].
```

**Response:** 
```
{"totalFSM": 250, "totalVCG": 0.025, "finalGM": 1.175, "stabilityStatus": "Stable"}
```

## Capabilities

### Individual Tank Analysis
Your agent calculates the specific moment for any single tank in the vessel.

### Total Correction Math
Your agent determines the total virtual rise in the center of gravity for the whole ship.

### Final GM Calculation
Your client computes the corrected metacentric height after accounting for liquid movement.

### Stability Reporting
Your agent generates a full stability status report based on displacement and tank data.

## Use Cases

### Cargo Loading Operations
Check how filling specific tanks will change the vessel's metacentric height before finalizing a load plan.

### Stability Verification
Run a full stability summary to ensure the vessel remains within safe limits during transit.

### Tank Management
Calculate individual free surface moments for specific tanks to understand their impact on the center of gravity.

### Virtual VCG Assessment
Determine the total virtual rise in the center of gravity caused by liquid sloshing in multiple tanks.

## Benefits

- Reduces manual calculation errors in stability math.
- Accounts for the destabilizing free surface effect automatically.
- Provides immediate stability status reports from raw tank data.
- Integrates directly into your existing AI-driven engineering workflow.

## How It Works

Connect the MCP to your AI client and start running stability calculations immediately.

1. Connect your preferred client like Claude or Cursor to the Vinkius hosted MCP.
2. Provide your tank data or vessel displacement to your AI agent.
3. Your agent uses the specific tools to calculate moments or corrections.
4. Receive the final corrected GM or stability summary directly in your chat interface.

## Frequently Asked Questions

**What is the purpose of this MCP?**
This MCP performs naval architecture calculations to account for the free surface effect in partially filled tanks, ensuring accurate vessel stability data.

**Which AI clients can use this tool?**
You can use this MCP with any compatible client, including Claude, Cursor, Windsurf, and VS Code.

**How does it handle the free surface effect?**
The MCP uses specific tools to calculate individual tank moments and the total virtual rise in the center of gravity to find the corrected metacentric height.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You connect your client and start working.

**Can it provide a full stability report?**
Yes, the get_stability_summary tool provides a complete assessment of the vessel's stability status.

**What is the free surface effect?**
The free surface effect is a reduction in a vessel's stability caused by the shifting of liquid in partially filled tanks as the ship heels.

**How do I calculate the total correction for my vessel?**
You can use the `calculate_total_correction` tool by providing an array of individual tank moments and the total vessel displacement.

**Can I get a full stability report?**
Yes, the `get_stability_summary` tool provides a comprehensive view including total FSM, total VCG rise, and the final corrected GM.
