# Veterinary ECG Interval Analyzer AI Agent Connect

> Veterinary ECG Interval Analyzer MCP processes ECG waveform landmarks to calculate critical physiological metrics. Your AI client uses this tool to determine heart rate, RR intervals, PR, QRS, QT, and corrected QT (QTc) values. It handles complex math like Bazett or Fridericia formulas and checks waveform integrity to ensure your clinical data is reliable.

## Overview
- **Category:** medical
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_s6gVDaY9DHUuBh5PjBj3vJLF2MsqQOVMmImwGDm0/ai-agent-connect
- **Tags:** ecg, veterinary, cardiology, heart-rate, waveform-analysis

## Description

This MCP gives your AI client the ability to perform detailed electrocardiogram analysis for veterinary patients. Instead of manually calculating intervals from paper speeds or sampling rates, you provide the waveform landmarks and let your agent do the math. It handles the heavy lifting of calculating core physiological measurements and normalizing QT intervals using standard clinical formulas. You can also use it to assess rhythm stability through time-domain analysis of RR intervals. Before you rely on any measurement, the MCP can check your waveform data to ensure the landmarks are clear enough for a valid clinical reading. It turns raw ECG data into actionable cardiac metrics within your existing AI workflow.

## Tools

### analyze_heart_rate_variability
This tool quantifies rhythm stability and autonomic indicators. It uses time-domain analysis of RR intervals to assess how much the heart rate fluctuates.

### calculate_cardiac_metrics
This tool provides the primary physiological measurements for a specific ECG segment. It calculates values like heart rate, PR, QRS, and QT intervals.

### get_qtc_correction
This tool calculates the corrected QT interval. It applies specific mathematical models to normalize the QT measurement.

### validate_waveform_integrity
This tool checks if your waveform landmarks are clear enough for clinical use. It evaluates whether the data quality is sufficient for accurate measurement.

## Prompt Examples

**Prompt:** 
```
Calculate the cardiac metrics for an ECG with a 500Hz sampling rate, 25mm/s paper speed, and 10mm/mV calibration. The P-wave is at 0.1-0.2s, QRS is at 0.2-0.3s, T-wave is at 0.4-0.5s, and RR intervals are [0.8, 0.82, 0.79].
```

**Response:** 
```
The calculated heart rate is 75.4 BPM, with an RR interval of 0.803s, PR interval of 0.1s, QRS duration of 0.1s, QT interval of 0.3s, and a QTc of 0.42s. Measurement quality is high.
```

**Prompt:** 
```
What is the corrected QT using the Bazett formula if the QT is 0.4s and the RR interval is 0.8s?
```

**Response:** 
```
The corrected QT (QTc) using the Bazett formula is 0.45s.
```

**Prompt:** 
```
Check if my ECG waveform landmarks are clear enough for analysis with a 500Hz sampling rate.
```

**Response:** 
```
The waveform landmarks are distinct, resulting in a confidence score of 0.95.
```

## Capabilities

### Cardiac Metric Calculation
Your agent calculates heart rate, PR, QRS, and QT intervals from provided waveform data.

### QTc Normalization
Your agent applies Bazett or Fridericia formulas to provide corrected QT measurements.

### Rhythm Stability Assessment
Your agent uses RR interval time-domain analysis to quantify heart rate variability.

### Data Quality Validation
The MCP checks if waveform landmarks are distinct enough for reliable clinical measurement.

## Use Cases

### Rapid Clinical Assessment
An emergency vet provides waveform landmarks to your agent to get an immediate heart rate and QRS duration.

### QTc Normalization
A specialist uses the Bazett formula tool to correct QT intervals based on a patient's RR interval.

### Rhythm Monitoring
A practitioner analyzes RR interval variability to check for autonomic indicators and rhythm stability.

### Data Quality Check
A technician verifies that an ECG trace has clear enough landmarks for a reliable reading.

## Benefits

- Reduces manual math for QTc corrections using standard formulas.
- Provides instant heart rate and interval measurements from raw data.
- Validates waveform quality before you perform clinical analysis.
- Quantifies rhythm stability through RR interval analysis.

## How It Works

Connect the MCP to your AI client and start analyzing waveforms immediately.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide the ECG waveform landmarks and technical parameters like sampling rate.
3. Your agent invokes the necessary tools to calculate metrics or validate data.
4. Receive precise physiological measurements directly in your chat interface.

## Frequently Asked Questions

**What formulas does the MCP use for QTc correction?**
The MCP can use the Bazett or Fridericia formulas to normalize QT intervals.

**Can this MCP check if my ECG data is good enough to use?**
Yes, the validate_waveform_integrity tool evaluates if your waveform landmarks are clear enough for clinical measurement.

**What kind of ECG metrics can my agent calculate?**
Your agent can calculate heart rate, RR intervals, PR, QRS, QT, and corrected QT (QTc) intervals.

**How do I use this with Claude or Cursor?**
You connect to the Vinkius-hosted MCP once, and then your AI client can call the tools directly through the Model Context Protocol.

**Does this tool analyze heart rate variability?**
Yes, the analyze_heart_rate_variability tool uses time-domain analysis of RR intervals to quantify rhythm stability.

**What metrics can be calculated from an ECG trace?**
The tool calculates heart rate, RR interval, PR interval, QRS duration, QT interval, and corrected QT (QTc) using `calculate_cardiac_metrics`.

**How do I normalize the QT interval?**
You can use the `get_qtc_correction` tool to apply Bazett or Fridericia formulas to normalize the QT interval against the heart rate.

**Can this tool assess rhythm stability?**
Yes, the `analyze_heart_rate_variability` tool provides SDNN and RMSSD values to quantify rhythm stability.
