# Time in Range Analyzer AI Agent Connect

> Calculates clinical glycemic control metrics like TIR, GMI, and CV from glucose readings.

## Overview
- **Category:** health
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_5Ocma3mKj6swRn5UBRWA03lyFKOh3Jlyw6JkLdb8/ai-agent-connect
- **Tags:** cgm, glucose, diabetes, glycemic, health-tech

## Description

This MCP server provides precise statistical analysis for Continuous Glucose Monitor (CGM) data. It calculates essential glycemic metrics including Time in Range (TIR), Time Above Range (TAR), Time Below Range (TBR), Glucose Management Indicator (GMI), and Coefficient of Variation (CV). Use `analyze_glycemic_metrics` to get a full clinical report with risk flags, or `get_glycemic_summary_stats` for basic descriptive statistics like mean and standard deviation.

## Tools

### analyze_glycemic_metrics
Calculates comprehensive glycemic control metrics from a series of glucose readings

### get_glycemic_summary_stats
Provides basic descriptive statistics for a set of glucose readings

### validate_target_parameters
Validates that the provided target ranges are clinically logical

## Prompt Examples

**Prompt:** 
```
Analyze these glucose readings: [110, 125, 140, 95, 185, 210, 65, 75, 130, 150]
```

**Response:** 
```
The analysis shows a TIR of 70%, a TAR of 20%, and a TBR of 10%. The GMI is 135 mg/dL and the CV is 32%. A 'Dangerous Hypoglycemia Risk' flag is present due to the TBR being above 4%.
```

**Prompt:** 
```
Give me the summary statistics for these readings: [100, 110, 120, 130]
```

**Response:** 
```
The mean glucose is 115 mg/dL, the standard deviation is 11.18 mg/dL, the minimum is 100 mg/dL, the maximum is 130 mg/dL, and there were 4 readings processed.
```

**Prompt:** 
```
Is a target range of 70 to 180 valid?
```

**Response:** 
```
Yes, the target range of 70 to 180 is clinically valid.
```

## Frequently Asked Questions

**What is Time in Range (TIR)?**
TIR is the percentage of time your glucose levels stay within your target range, which is a key indicator of glycemic stability.

**How can I check for high glycemic variability?**
You can use the `analyze_glycemic_metrics` tool. It automatically flags high glycemic variability if the Coefficient of Variation (CV) exceeds 36%.

**What are clinical flags?**
Clinical flags are automated warnings triggered when metrics reach dangerous levels, such as high hypoglycemia risk (TBR > 4%).
