# Tank Sounding & Volume Interpolator AI Agent Connect

> Tank Sounding & Volume Interpolator MCP lets your AI client perform precise maritime and industrial tank management. It handles the math of interpolating between data points in sounding tables to find volume, mass, center of gravity, and stability metrics. Instead of manual lookups, your agent calculates corrected values while accounting for trim and heel.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_jaUqMbgDia9KuXLXzFFxWk5PkRGs9nGRYDZROsMY/ai-agent-connect
- **Tags:** tank-management, interpolation, stability, sounding, maritime-engineering

## Description

You can stop manually interpolating between sounding table entries. This MCP gives your AI client the ability to read discrete data points and calculate exact liquid properties. When you provide a sounding table, your agent can find the specific bracket for a given depth using find_sounding_bounds. From there, get_interpolated_tank_state handles the heavy lifting to determine corrected volume, mass, center of gravity, and free-surface moments. It even accounts for trim and heel corrections to ensure accuracy. For safety and cargo monitoring, get_tank_stability_summary provides a high-level view of how liquid levels impact vessel stability. You can also use verify_mass_reconciliation to check your calculated mass against expected targets, which helps you spot measurement errors or potential leaks immediately. It turns raw sounding data into actionable engineering intelligence.

## Tools

### find_sounding_bounds
This tool identifies the specific data points or bracket within a sounding table for a given depth.

### get_tank_stability_summary
This tool provides a high-level view of how the liquid in the tank affects vessel stability.

### get_interpolated_tank_state
This tool performs the primary interpolation to find the tank's volume, mass, and center of gravity at a specific depth.

### verify_mass_reconciliation
This tool validates calculated mass against an expected target to help you detect leaks or measurement errors.

## Prompt Examples

**Prompt:** 
```
Calculate the tank state for a sounding of 2.5m with a density of 1025 kg/m³, using this sounding table: [{"sounding": 2.0, "volume": 100, "mass": 102500, "cog": 1.0, "fse": 10}, {"sounding": 3.0, "volume": 150, "mass": 153750, "cog": 1.2, "fse": 15}]
```

**Response:** 
```
The interpolated volume is 125.0 m³, the corrected mass is 128,125 kg, and the interpolation fraction is 0.5.
```

**Prompt:** 
```
Verify if a calculated mass of 5000kg is within 50kg of an expected mass of 5040kg.
```

**Response:** 
```
The mass is reconciled. The deviation is 40kg, which is within the 50kg tolerance.
```

**Prompt:** 
```
What are the sounding bounds for a depth of 1.5m in a table with soundings at 1.0m and 2.0m?
```

**Response:** 
```
The lower bound is the data point at 1.0m and the upper bound is the data point at 2.0m.
```

## Capabilities

### Data Interpolation
Your agent calculates precise values between discrete sounding table entries.

### Stability Analysis
Your agent determines how liquid levels in tanks influence the overall stability of a vessel.

### Mass Reconciliation
Your agent compares calculated mass against targets to identify leaks or errors.

### Trim and Heel Correction
The tool calculates corrected volume and mass by accounting for vessel movement.

### Boundary Identification
Your agent finds the correct data bracket for any given sounding depth.

## Use Cases

### Cargo Monitoring
Use mass reconciliation to check if the current cargo weight matches the expected load to spot leaks.

### Vessel Stability Checks
Get a stability summary to see how current tank levels affect the ship's center of gravity.

### Automated Sounding Reports
Feed sounding tables into your AI client to generate precise volume and mass reports instantly.

### Trim and Heel Adjustments
Calculate corrected tank states when the vessel is not on an even keel.

## Benefits

- Eliminates manual interpolation math between sounding table points.
- Detects measurement errors or leaks through mass reconciliation.
- Provides corrected liquid properties including trim and heel adjustments.
- Generates stability insights directly from sounding data.

## How It Works

Connect your client to Vinkius and start sending sounding data to your agent.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your sounding table data to your AI agent.
3. Ask your agent to find bounds or interpolate specific tank states.
4. Receive corrected volume, mass, and stability data immediately.

## Frequently Asked Questions

**What can this MCP calculate from a sounding table?**
It calculates volume, mass, center of gravity, and free-surface moments by interpolating between data points.

**How does it handle vessel movement?**
The tool can provide corrected volume and mass values that account for trim and heel.

**Can it help detect leaks?**
Yes, the verify_mass_reconciliation tool compares calculated mass against an expected target to find discrepancies.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client like Claude, Cursor, or Windsurf.

**Do I need to host this myself?**
No, Vinkius hosts and manages the MCP for you. You connect and use it.

**How does the tool handle vessel tilt?**
The `get_interpolated_tank_state` tool accepts trim and heel correction parameters to calculate an effective sounding before performing interpolation.

**Can I check for leaks or measurement errors?**
Yes, you can use `verify_mass_reconciliation` to compare the calculated mass against an expected target mass within a specified tolerance.

**What information is provided for stability analysis?**
The `get_tank_stability_summary` tool provides the virtual rise in the vessel's center of gravity and a stability impact score.
