# HbA1c to Average Glucose Converter AI Agent Connect

> Estimate average glucose, time in range, and glucose variability from HbA1c.

## Overview
- **Category:** utilities
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_FEO3GSqdMFfdjUki2f5iAjit9X5bubw7FIas8aeU/ai-agent-connect
- **Tags:** diabetes, glucose, hba1c, medical-tools, health-metrics

## Description

This MCP server provides deterministic tools to convert HbA1c percentages into clinical glucose metrics. Using the ADAG formula, it calculates estimated average glucose (eAG) in both mg/dL and mmol/L. It also provides statistical estimates for Time in Range (TIR) and the Coefficient of Variation (CV) based on standard regression models. Use `calculate_glucose_metrics` to get a full profile of glucose metrics, `get_conversion_constants` to see the underlying math, or `validate_a1c_range` to check if a value is clinically valid.

## Tools

### calculate_glucose_metrics
Calculate estimated glucose metrics based on HbA1c percentage

### get_conversion_constants
Get the mathematical constants used for glucose conversions

### validate_a1c_range
Validate if an HbA1c value is within a clinically valid range

## Prompt Examples

**Prompt:** 
```
Based on this HbA1c percentage, what are my estimated average glucose, time in range, and glucose variability? My HbA1c is 7.0%.
```

**Response:** 
```
For an HbA1c of 7.0%, your estimated average glucose is 154 mg/dL (8.5 mmol/L), with an estimated Time in Range of approximately 70% and a Coefficient of Variation of 33%.
```

**Prompt:** 
```
What are the mathematical constants used for these glucose conversions?
```

**Response:** 
```
The conversion uses a mg/dL to mmol/L factor of 18.018 and assumes a standard CV range for statistical estimations.
```

**Prompt:** 
```
Is an HbA1c of 4.5% valid for estimation?
```

**Response:** 
```
Yes, an HbA1c of 4.5% is within the clinically valid range for these estimation models.
```

## Frequently Asked Questions

**How is the average glucose calculated?**
The estimated average glucose (eAG) is calculated using the ADAG formula: (28.7 × HbA1c) - 46.7.

**Can I validate if my HbA1c value is within a realistic range?**
Yes, you can use the `validate_a1c_range` tool to check if a specific HbA1c percentage falls within a clinically meaningful and physiologically valid range.

**What metrics are provided in the full report?**
The `calculate_glucose_metrics` tool provides the HbA1c percentage, eAG in mg/dL, eAG in mmol/L, estimated Time in Range (TIR), and the estimated Coefficient of Variation (CV).
