# Displacement and Hydrostatic Interpolator AI Agent Connect

> Displacement and Hydrostatic Interpolator MCP handles the heavy lifting for naval architecture calculations. It lets your AI client perform precise mathematical interpolations for critical vessel properties like displacement, TPC, and LCB by processing provided hydrostatic data tables.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_od5c92AQxa4p5acu0FE8eAlf6he6PeYJskBL7gJ7/ai-agent-connect
- **Tags:** displacement, tpc, lcb, draft, interpolation

## Description

You can stop manually calculating vessel properties from draft tables. This MCP gives your AI agent the mathematical precision needed for naval architecture and hydrostatics. When you provide a hydrostatic table, your agent uses it to find specific values for any given draft. It does more than guess; it identifies the exact data brackets, calculates the interpolation fraction, and tells you if the result is an extrapolation. Whether you need to find the displacement, TPC, or LCB, the math stays accurate. You can also use it to verify that your data tables are mathematically sound before running calculations, ensuring your results are based on reliable inputs.

## Tools

### validate_hydrostatic_table
This tool checks if a provided table is mathematically sound. It ensures the data is safe to use for interpolation calculations.

### get_hydrostatic_range
This tool identifies the specific data brackets used for a given draft. It finds the surrounding data points needed for interpolation.

### get_hydrostatic_value
This tool calculates a specific hydrostatic property for a given draft using a provided data table. It returns the value along with the relevant data points and interpolation details.

### get_interpolation_fraction
This tool determines the relative position of a draft within its surrounding data brackets. It helps your agent understand where the draft sits between two known points.

## Prompt Examples

**Prompt:** 
```
Calculate the displacement for a draft of 5.5 meters using this table: [{"draft": 5.0, "displacement": 1000}, {"draft": 6.0, "displacement": 1200}]
```

**Response:** 
```
The calculated displacement for a 5.5m draft is 1100.
```

**Prompt:** 
```
What is the TPC for a draft of 4.2m? Table: [{"draft": 4.0, "tpc": 15}, {"draft": 4.5, "tpc": 16}]
```

**Response:** 
```
The interpolated TPC for a 4.2m draft is 15.4.
```

**Prompt:** 
```
Check if this hydrostatic table is valid: [{"draft": 10.0, "displacement": 5000}]
```

**Response:** 
```
The table is valid.
```

## Capabilities

### Hydrostatic Interpolation
Your agent calculates displacement, TPC, and LCB from draft tables.

### Data Validation
Your agent checks tables to ensure they are mathematically sound for calculations.

### Bracket Identification
Your agent finds the specific data points surrounding a target draft.

### Fraction Calculation
Your agent determines the exact interpolation fraction for any given draft.

## Use Cases

### Vessel Loading Calculations
Calculate displacement and TPC to determine how much weight a ship can safely carry at a specific draft.

### Stability Analysis
Find the LCB for a specific draft to assist in center of buoyancy calculations.

### Data Integrity Checks
Run a validation check on a new hydrostatic table to ensure it is safe for use.

### Draft Property Lookup
Quickly find interpolated values between two known points in a draft table.

## Benefits

- Eliminates manual interpolation errors in naval architecture math.
- Validates data integrity before performing calculations.
- Provides the specific data brackets and fractions used for each result.
- Works directly with JSON-formatted hydrostatic tables.

## How It Works

Connect your AI client to Vinkius and start passing hydrostatic data to your agent.

1. Connect your MCP-compatible client to Vinkius.
2. Provide the hydrostatic data table in JSON format to your agent.
3. Ask your agent to calculate a specific property like displacement or TPC.
4. Your agent uses the tools to validate the table and interpolate the value.
5. Receive the precise calculated result and the supporting data points.

## Frequently Asked Questions

**What properties can this MCP calculate?**
It calculates displacement, TPC (Tonnes Per Centimeter), and LCB (Longitudinal Center of Buoyancy) based on provided draft tables.

**How do I provide the data to your agent?**
You provide the hydrostatic data as a JSON string representing the table containing draft and property values.

**Can your agent tell if a value is an extrapolation?**
Yes, the tool returns whether the result is an extrapolation or a standard interpolation.

**Does this MCP validate my data?**
Yes, it includes a tool to ensure your hydrostatic table is mathematically sound and safe for interpolation.

**Which AI clients can use this MCP?**
Any MCP-compatible client like Claude, Cursor, Windsurf, or VS Code can use this MCP.

**How do I provide the hydrostatic data?**
You must provide the hydrostatic data as a JSON string representing the table of draft and property values. The `validate_hydrostatic_table` tool can be used first to ensure your JSON is correctly formatted and sorted.

**What happens if the draft is outside the table range?**
If the target draft is lower than the lowest entry or higher than the highest entry in your table, the `get_hydrostatic_value` tool will return the result with the `isExtrapolated` flag set to true.

**Can I interpolate properties other than displacement?**
Yes, you can interpolate any property included in your provided table, such as TPC or LCB, by specifying the property name in the `get_hydrostatic_value` tool.
