# Venous-Arterial PCO2 Gap Calculator AI Agent Connect

> Venous-Arterial PCO2 Gap Calculator MCP gives your AI client the math and logic needed for clinical physiology. It handles the heavy lifting of calculating PCO2 differences, normalizing pressure units, and checking if blood gas samples are timed correctly for a valid comparison.

## Overview
- **Category:** physiology
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_YqbbbZXEERfoRras6Di0av1VBT7l7RaQ03xQT1W2/ai-agent-connect
- **Tags:** pco2, clinical, physiology, blood-gas, medical-tools

## Description

You can use this MCP to bring precise physiological math directly into your AI agent's workflow. Instead of manually calculating the difference between venous and arterial carbon dioxide levels, you let your agent handle the numbers. It can compute the absolute and percentage differences between samples while ensuring the timing of the draws makes sense for a valid comparison. 

If you're working with mixed units, the MCP handles the conversion between different pressure scales automatically. It also helps you make sense of repetitive data by aggregating multiple measurements to check for stability. This is built for clinical contexts where the relationship between arterial and venous PCO2 is critical for assessing patient status.

## Tools

### summarize_pco2_replicates
This tool aggregates multiple PCO2 measurements for a single patient to assess measurement stability.

### verify_sample_pairing
This tool checks if a specific set of venous and arterial samples are physiologically valid to compare based on their timing.

### convert_pco2_units
This tool normalizes PCO2 values between different pressure units.

### calculate_pco2_gap
This tool calculates the numerical PCO2 gap between a venous and an arterial sample.

## Prompt Examples

**Prompt:** 
```
Calculate the PCO2 gap for a central venous PCO2 of 45 mmHg and an arterial PCO2 of 40 mmHg, with a 5 minute tolerance.
```

**Response:** 
```
The PCO2 gap is 5 mmHg.
```

**Prompt:** 
```
Convert 5 kPa to mmHg.
```

**Response:** 
```
5 kPa is approximately 37.503 mmHg.
```

**Prompt:** 
```
What is the mean and median of these PCO2 values: 40, 42, 38, 41, 39?
```

**Response:** 
```
The mean is 40 and the median is 40.
```

## Capabilities

### Gap Calculation
Your agent calculates the numerical difference between venous and arterial PCO2.

### Unit Normalization
The MCP converts PCO2 values between different pressure scales.

### Sample Validation
Your agent checks if blood gas samples are timed correctly for a valid comparison.

### Data Aggregation
The MCP summarizes multiple PCO2 measurements to check for stability.

## Use Cases

### Patient Monitoring
An agent calculates the PCO2 gap to help assess a patient's respiratory status.

### Data Standardization
The MCP converts kPa values to mmHg to match existing clinical records.

### Quality Control
Your agent uses sample pairing verification to ensure blood gas data is physiologically sound.

### Statistical Summaries
The tool aggregates multiple patient measurements to find the mean and median.

## Benefits

- Automates the math for PCO2 gap and percentage differences.
- Ensures sample timing is valid before performing comparisons.
- Standardizes different pressure units into a single scale.
- Summarizes repetitive measurements to identify stability.

## How It Works

You connect the MCP to your AI client and then provide the clinical data through natural language.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide the PCO2 values or sample timing to your agent.
3. The agent invokes the necessary tool to perform the calculation or conversion.
4. The agent returns the processed physiological data to you.

## Frequently Asked Questions

**How do I use this MCP with Claude or Cursor?**
You connect your client to Vinkius once, and the tools become available for your agent to call immediately.

**Can the MCP check if my blood gas samples are valid?**
Yes, the verify_sample_pairing tool checks if venous and arterial samples are valid to compare based on their timing.

**Does it support unit conversion?**
Yes, the convert_pco2_units tool can normalize PCO2 values between different pressure units.

**Can I summarize multiple patient readings?**
Yes, the summarize_pco2_replicates tool aggregates multiple measurements to provide a sense of stability.

**What kind of PCO2 gap calculations are performed?**
The calculate_pco2_gap tool computes the numerical gap, absolute difference, and percentage difference.

**What is the PCO2 gap?**
The PCO2 gap is the numerical difference between the partial pressure of carbon dioxide in venous blood and arterial blood.

**How does the tool handle different pressure units?**
The `calculate_pco2_gap` tool automatically converts values to the requested unit (mmHg or kPa) before performing the calculation.

**Can I verify if two blood samples are a valid pair?**
Yes, you can use the `verify_sample_pairing` tool to check if the time difference between venous and arterial samples falls within a specified tolerance.
