# Transtubular Potassium Gradient Calculator MCP. AI Agent Connect

> Transtubular Potassium Gradient Calculator MCP provides clinical tools for analyzing renal potassium handling. Your AI client uses this MCP to run TTKG calculations, check if electrolyte levels are physiologically plausible, verify specimen timing, and access various mathematical models for renal assessment.

## Overview
- **Category:** medical
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_jvcYOmXRkJyA5BdZQiAnySEXLOdanhDPW9bm9PsO/ai-agent-connect
- **Tags:** potassium, ttkg, renal, electrolyte, clinical

## Description

This MCP gives your AI client the specific mathematical tools needed to evaluate how the kidneys handle potassium. Instead of manually running formulas, you can hand your lab data to your agent and let it handle the math. It includes tools to calculate the Transtubular Potassium Gradient (TTKG) using different mathematical models. To ensure your results are clinically sound, the MCP can check if the timing between your plasma and urine samples is acceptable and verify that the potassium levels provided are physiologically plausible. This removes the guesswork from renal electrolyte assessment by providing a direct way to validate data before and during the calculation process.

## Tools

### calculate_ttkg
This tool performs the actual Transtubular Potassium Gradient calculation based on your provided data.

### check_electrolyte_feasibility
Your agent uses this to confirm if the potassium levels you provided fall within expected physiological limits.

### get_ttkg_formula_options
This tool lists the different mathematical models available for performing the TTKG calculation.

### validate_specimen_timing
This tool checks if the time gap between plasma and urine collection meets clinical standards.

## Prompt Examples

**Prompt:** 
```
Calculate the TTKG with plasma potassium 4.5, urine potassium 30, plasma osmolality 285, urine osmolality 500, using the standard formula.
```

**Response:** 
```
The calculated TTKG is 0.27.
```

**Prompt:** 
```
Is a plasma potassium of 3.5 and urine potassium of 25 physiologically plausible?
```

**Response:** 
```
Yes, these potassium levels are within the expected physiological range.
```

**Prompt:** 
```
Check if the timing between plasma collection at 2023-10-27T10:00:00Z and urine collection at 2023-10-27T10:45:00Z is acceptable.
```

**Response:** 
```
The timing is acceptable as the interval is 45 minutes.
```

## Capabilities

### TTKG Calculation
Your agent calculates the gradient using specific mathematical models.

### Data Validation
The MCP checks if electrolyte levels are physiologically realistic.

### Specimen Timing Checks
Your AI client verifies the interval between plasma and urine collection.

### Model Selection
The agent can identify which mathematical formulas are available for use.

## Use Cases

### Renal Function Assessment
Use the MCP to determine if a patient's kidneys are appropriately excreting potassium.

### Lab Data Verification
Check if provided potassium levels are physiologically possible before proceeding with analysis.

### Clinical Workflow Automation
Let your AI client handle the TTKG math while you focus on patient diagnosis.

### Specimen Quality Control
Verify that the time between plasma and urine draws is tight enough for a valid TTKG result.

## Benefits

- Reduces manual calculation errors in renal assessment.
- Validates specimen timing to ensure clinical accuracy.
- Checks physiological plausibility of electrolyte data.
- Provides multiple mathematical models for TTKG.

## How It Works

Connect your AI client to Vinkius to start using these renal tools immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your lab results or specimen timing to your AI agent.
3. The agent uses the MCP tools to validate the data and run the math.
4. Receive the calculated TTKG or validation status instantly.

## Frequently Asked Questions

**What can this MCP calculate?**
This MCP calculates the Transtubular Potassium Gradient (TTKG) using various mathematical models.

**Can it check if my lab data is valid?**
Yes, it can check if potassium levels are physiologically plausible and if the timing between plasma and urine collection is acceptable.

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

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

**How does it handle specimen timing?**
The validate_specimen_timing tool evaluates the temporal gap between plasma and urine collection to ensure it is clinically acceptable.

**What is the purpose of the TTKG?**
The Transtubular Potassium Gradient (TTKG) is used to estimate the potassium concentration gradient between the tubular lumen and the peritubular capillaries to assess renal potassium excretion.

**How can I check if my specimen collection timing is valid?**
You can use the `validate_specimen_timing` tool by providing the ISO 8601 timestamps for both the plasma and urine collections.

**What formula types are available for calculation?**
You can use `get_ttkg_formula_options` to see the supported models, which typically include standard and osmolality adjusted approaches.
