# Depth Profile Gradient Calculator AI Agent Connect

> Depth Profile Gradient Calculator is a specialized mathematical MCP for underwater topographical analysis. It gives your AI client the ability to process 1D bathymetric profiles to find slopes, identify geological features like ridges or trenches, and pinpoint specific depth extrema. You can quickly move from raw station and depth data to a clear understanding of seafloor shape and transition points.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_dB2lG94q2ioQMIWfx43hBsBD8vwZCR2EMvxniwqB/ai-agent-connect
- **Tags:** bathymetry, gradient, curvature, topography, seafloor

## Description

You can now give your AI agent the mathematical tools needed to interpret underwater terrain. Instead of manually calculating slopes or searching for the deepest points in a dataset, you can hand your bathymetric profiles directly to your AI client. This MCP handles the heavy lifting of calculating gradients and curvature, allowing your agent to identify exactly where the seafloor shifts from a ridge to a trench. 

Whether you are analyzing a single transect or a series of stations, the MCP provides precise mathematical outputs. You can use it to find the exact location of peaks and troughs or to get a detailed summary of depth changes between two specific points. It turns raw coordinate and depth lists into structured topographical insights, making it easier to map out seafloor morphology without manual math.

## Tools

### analyze_profile_gradient
Calculates the slope and direction of the seafloor at specific points or along segments in a 1D profile.

### calculate_profile_curvature
Determines if the seafloor is convex or concave at given points to identify its shape.

### find_profile_extrema
Locates the highest peaks and deepest troughs within your provided bathymetric profile.

### get_segment_summary
Provides a breakdown of depth changes between two adjacent stations in a profile.

## Prompt Examples

**Prompt:** 
```
Calculate the gradient for these points: stations [0, 10, 20] and depths [-5, -15, -10].
```

**Response:** 
```
At station 0, the gradient is -1.0 (descending). At station 10, the gradient is 0.5 (ascending). At station 20, the gradient is -0.5 (descending).
```

**Prompt:** 
```
Find the deepest point in this profile: stations [0, 5, 10] and depths [-2, -8, -3].
```

**Response:** 
```
The deepest point (minimum) is located at station 5 with a depth of -8.
```

**Prompt:** 
```
What is the shape of the seafloor at station 15 for these points: stations [10, 15, 20] and depths [-5, -2, -5]?
```

**Response:** 
```
The seafloor at station 15 is convex, forming a ridge.
```

## Capabilities

### Slope Calculation
Your agent uses this to find the direction and steepness of the seafloor.

### Feature Identification
Your agent identifies ridges and trenches by calculating profile curvature.

### Extrema Detection
Your agent locates the exact coordinates of the deepest and shallowest points.

### Segment Analysis
Your agent summarizes depth transitions between specific stations.

## Use Cases

### Ridge and Trench Mapping
Use curvature tools to distinguish between convex ridges and concave trenches in a profile.

### Slope Stability Assessment
Calculate gradients to understand the steepness of underwater slopes.

### Depth Extremas Search
Quickly find the deepest point in a large dataset of station and depth values.

### Transect Summarization
Get a detailed breakdown of how depth changes between two specific points in a survey.

## Benefits

- Automates the math for seafloor slope and direction.
- Identifies geological shapes like ridges and trenches via curvature analysis.
- Pinpoints exact depth extrema without manual searching.
- Provides instant summaries of depth changes between stations.

## How It Works

Connecting this MCP to your AI client gives your agent immediate access to bathymetric math tools.

1. Connect your AI client to the MCP via Vinkius.
2. Provide your bathymetric data (stations and depths) to your agent.
3. Ask your agent to perform a specific calculation like gradient or curvature.
4. Your agent calls the appropriate tool to process the data.
5. Your agent delivers the mathematical results directly in the chat.

## Frequently Asked Questions

**What kind of data does this MCP need?**
The MCP processes 1D bathymetric profiles consisting of station locations and their corresponding depths.

**Can I use this with Claude or Cursor?**
Yes, you can use this MCP with any MCP-compatible client including Claude, Cursor, and Windsurf.

**How does it identify seafloor shapes?**
It uses the calculate_profile_curvature tool to determine if a point is convex or concave.

**Does it find the deepest points in a profile?**
Yes, the find_profile_extrema tool is designed to locate both the shallowest and deepest points.

**Is there a way to see changes between two specific points?**
Yes, the get_segment_summary tool provides a detailed breakdown of depth changes between adjacent stations.

**How do I use this to find the steepest part of a seafloor profile?**
You can use `analyze_profile_gradient` to calculate the slope at each point. The point with the highest absolute gradient value represents the steepest section.

**Can I identify ridges and trenches?**
Yes, `calculate_profile_curvature` identifies the shape of the seafloor, labeling features as convex (ridges) or concave (trenches).

**What kind of data does the server require?**
The server requires two JSON-encoded arrays: one for horizontal station points and one for the corresponding depth values.
