# Under-Keel Clearance Calculator AI Agent Connect

> Under-Keel Clearance Calculator MCP handles the math for maritime safety margins. Your AI client uses this to aggregate charted depth, water levels, vessel draft, squat, and wave allowances to determine if a vessel can safely pass over the seabed.

## Overview
- **Category:** maritime
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_bpJYkwuhySfgmR48a0Jnbw7De6mxjzu4zbW7EnV1/ai-agent-connect
- **Tags:** maritime, ukc, navigation, vessel, safety

## Description

Navigating shallow waters requires precise math to prevent hull contact with the seabed. This MCP gives your AI agent the ability to calculate Under-Keel Clearance (UKC) by pulling together multiple variables like charted depth, tide corrections, and vessel draft. Instead of manual calculations, you can ask your agent to account for squat and wave allowance to find the actual safety margin. It also handles vertical reference shifts, such as moving between Chart Datum and Lowest Astronomical Tide, to ensure all measurements align. If you provide conflicting data, the MCP checks the logic to make sure your depth and draft numbers actually make sense before you rely on the result.

## Tools

### adjust_for_datum_shift
This tool re-aligns depth or draft values between different vertical references. Use it to move measurements from Chart Datum to another datum like LAT.

### calculate_ukc_margin
This is the primary tool for determining the safety margin. It aggregates all depth and vessel factors into a single UKC value.

### get_squat_estimate_context
This tool provides the logic components needed to determine a squat value. It helps your agent assess how much the vessel will sink due to speed and depth.

### validate_measurement_consistency
This tool checks that your depth and draft measurements are logically sound. It flags errors where the provided numbers don't align with physical reality.

## Prompt Examples

**Prompt:** 
```
Calculate the UKC margin for a vessel with 12m charted depth, 0.5m tide rise, 8m draft, 0.3m squat, and 0.2m wave allowance.
```

**Response:** 
```
The total clearance is 3.0 meters. Net depth is 12.5m and the effective draft is 8.5m.
```

**Prompt:** 
```
Is a 10m charted depth and 11m draft consistent with a 0.5m tide rise?
```

**Response:** 
```
The measurements are consistent, but the clearance is -0.5m. This is unsafe because the effective draft exceeds the net depth.
```

**Prompt:** 
```
Adjust a 15m depth from Chart Datum to Lowest Astronomical Tide with a 1.2m difference.
```

**Response:** 
```
The adjusted value is 16.2 meters.
```

## Capabilities

### UKC Margin Calculation
Your agent calculates the net safety margin by combining depth, draft, squat, and wave factors.

### Vertical Datum Alignment
The MCP shifts depth or draft values between different vertical references like Chart Datum and LAT.

### Data Integrity Checks
Your agent verifies that depth and draft measurements are logically compatible.

### Squat Contextualization
The tool provides the necessary logic to help your agent estimate vessel squat.

## Use Cases

### Voyage Planning
An officer uses your agent to calculate if a specific draft will clear a shallow channel during a certain tide.

### Port Entry Verification
A user checks if a vessel's draft, including squat, stays within the safety limits of a specific berth.

### Datum Conversion
A navigator adjusts charted depths to match the local vertical datum used in a specific region.

### Safety Auditing
A superintendent uses the consistency tool to check if reported vessel measurements are physically possible.

## Benefits

- Reduces manual calculation errors by automating the aggregation of depth and draft factors.
- Ensures vertical reference consistency across different maritime charts.
- Flags illogical depth and draft inputs before they are used in planning.
- Provides a structured way to account for squat and wave allowance in safety margins.

## How It Works

Connect your AI client to Vinkius to start running maritime safety calculations immediately.

1. Connect your MCP-compatible client to the Vinkius hosted environment.
2. Provide your agent with depth, draft, and environmental data.
3. Your agent invokes the necessary tools to adjust datums or estimate squat.
4. Your agent runs the final UKC calculation to produce the safety margin.

## Frequently Asked Questions

**How does this MCP handle different water levels?**
The MCP uses the adjust_for_datum_shift tool to align depth or draft values between different vertical references like Chart Datum and LAT.

**Can your agent check if my depth and draft numbers are realistic?**
Yes, the validate_measurement_consistency tool checks that the provided depth and draft measurements are logically sound relative to each other.

**What factors are included in the UKC calculation?**
The calculation aggregates charted depth, water-level corrections, vessel draft, squat, and wave allowance.

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

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

**How do I calculate the total safety margin?**
You can use the `calculate_ukc_margin` tool. It takes the charted depth, water level correction, vessel draft, squat, and wave allowance to return a complete breakdown of the clearance.

**Can I adjust measurements between different datums?**
Yes, the `adjust_for_datum_shift` tool allows you to re-align depth or draft values between different vertical references, such as Chart Datum and Lowest Astronomical Tide.

**How can I check if my depth and draft measurements are valid?**
Use the `validate_measurement_consistency` tool to ensure that the provided charted depth and water level correction allow for a positive clearance relative to the vessel draft.
