# Fractional Excretion of Phosphate Calculator AI Agent Connect

> Fractional Excretion of Phosphate Calculator MCP provides clinical tools to determine FEPO4. It uses paired plasma and urine concentrations of phosphate and creatinine to compute the proportion of filtered phosphate that escapes renal reabsorption. Your AI client can also validate specimen timing, normalize units, and check for physiological plausibility.

## Overview
- **Category:** biochemistry
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_PuHqJrATaPXqHVgBD65lpYgMZNzKAmjZKHolsUJm/ai-agent-connect
- **Tags:** phosphate, creatinine, renal, clinical-calculation, nephrology

## Description

This MCP gives your AI client the specific clinical logic needed to handle renal biochemistry calculations. Instead of you manually running formulas, your agent uses the provided tools to process plasma and urine concentrations. You can hand off raw lab values to your AI, and it will use `calculate_fepo4` to find the fractional excretion. To ensure the math holds up, the MCP includes checks for specimen pairing and physiological bounds. It also handles unit conversions so you don't have to worry about mg/dL versus mmol/L mismatches. It is built to handle the precise requirements of nephrology and clinical biochemistry workflows.

## Tools

### calculate_fepo4
This tool computes the fractional excretion of phosphate based on provided lab values.

### get_phosphate_unit_conversion
This tool provides the necessary logic to convert phosphate units for accurate calculation.

### validate_specimen_pairing
This tool checks if the plasma and urine specimens were collected close enough in time to be valid.

### verify_measurement_extremes
This tool confirms that the laboratory concentrations fall within expected physiological ranges.

## Prompt Examples

**Prompt:** 
```
Calculate FEPO4 with plasma phosphate 3.5 mg/dL, urine phosphate 20 mg/dL, plasma creatinine 1.0 mg/dL, and urine creatinine 50 mg/dL. The specimens were collected at 2023-10-01T10:00:00Z and 2023-10-01T10:15:00Z.
```

**Response:** 
```
The fractional excretion of phosphate is 14.29%.
```

**Prompt:** 
```
Are these specimens paired? Plasma time: 2023-10-01T12:00:00Z, Urine time: 2023-10-01T12:45:00Z.
```

**Response:** 
```
The specimens are considered paired with a time difference of 45 minutes.
```

**Prompt:** 
```
How do I convert 4.5 mg/dL of phosphate to mmol/L?
```

**Response:** 
```
To convert 4.5 mg/dL to mmol/L, multiply by 0.249. The result is 1.12 mmol/L.
```

## Capabilities

### FEPO4 Computation
Your agent calculates the percentage of filtered phosphate excreted by the kidneys.

### Specimen Validation
The AI checks if plasma and urine samples are temporally paired for accurate results.

### Unit Normalization
The MCP converts phosphate measurements between different units.

### Physiological Verification
Your agent verifies that lab results stay within realistic biological bounds.

## Use Cases

### Renal Function Assessment
Your agent calculates FEPO4 to help evaluate kidney handling of phosphate.

### Lab Data Verification
The AI checks if a set of plasma and urine results are valid for calculation.

### Unit Conversion
Your agent converts mg/dL to mmol/L to match different laboratory reporting standards.

### Outlier Detection
The AI flags measurement extremes that fall outside of normal physiological ranges.

## Benefits

- Automates the FEPO4 formula using paired creatinine and phosphate data.
- Prevents errors by checking if specimens are sufficiently paired in time.
- Reduces manual math by providing built-in phosphate unit conversions.
- Ensures data integrity by flagging physiologically impossible lab values.

## How It Works

Connect your client to Vinkius and start sending lab data to the MCP.

1. Connect your AI client to the Vinkius hosted MCP.
2. Provide the plasma and urine concentrations to your agent.
3. The agent uses the MCP tools to validate specimens and units.
4. The MCP returns the calculated FEPO4 or validation status.

## Frequently Asked Questions

**How do I use this MCP with Claude?**
You connect your Claude client to Vinkius, which hosts the MCP. Once connected, you can simply ask Claude to perform the calculations using the available tools.

**What data is needed to calculate FEPO4?**
You need paired plasma and urine concentrations for both phosphate and creatinine.

**Can this MCP check if my lab results are realistic?**
Yes, the verify_measurement_extremes tool checks if the concentrations are within physiological bounds.

**Does it handle different units of measurement?**
Yes, the get_phosphate_unit_conversion tool handles the conversion logic for phosphate units.

**What happens if my plasma and urine samples were taken at different times?**
The validate_specimen_pairing tool will check if the time difference between the two specimens is acceptable for a valid calculation.

**What is required for a valid FEPO4 calculation?**
You must provide paired concentrations for plasma phosphate, urine phosphate, plasma creatinine, and urine creatinine. Additionally, the `validate_specimen_pairing` tool should be used to confirm that the plasma and urine specimens were collected within a clinically acceptable time window.

**How can I convert units before calculating?**
You can use the `get_phosphate_unit_conversion` tool to find the necessary multiplier to convert between mass concentration (mg/dL) and molar concentration (mmol/L).

**Can this tool check if my lab results are realistic?**
Yes, the `verify_measurement_extremes` tool checks if the provided phosphate and creatinine values fall within expected human physiological bounds.
