# Insulin Dose Calculator AI Agent Connect

> A deterministic tool for calculating mealtime insulin doses and estimating insulin on board.

## Overview
- **Category:** utilities
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_s1rD4jPCihGubkT1OJKp4Bn6Me1pj1eejnc9bAWl/ai-agent-connect
- **Tags:** diabetes, insulin, glucose, health-tech, medical-calculator

## Description

This MCP server provides precise tools for diabetes management. Use `calculate_insulin_dose` to determine the total insulin required by combining carbohydrate needs and glucose correction. Use `estimate_iob_decay` to track remaining active insulin, and `validate_glucose_safety` to ensure blood glucose levels are within safe limits before bolusing.

## Tools

### calculate_insulin_dose
Calculates the specific insulin dose required for a meal and blood glucose correction

### estimate_iob_decay
Estimates the remaining active insulin based on time elapsed since the last dose

### validate_glucose_safety
Checks if the current glucose level is within safe limits for bolusing

## Prompt Examples

**Prompt:** 
```
Calculate my insulin dose. My glucose is 150 mg/dL, target is 100 mg/dL, I'm eating 60g of carbs, my ICR is 10, my ISF is 50, and I have 2 units of active insulin.
```

**Response:** 
```
Your meal bolus is 6.0 units, your correction bolus is 1.0 unit, and after subtracting your 2 units of active insulin, your total recommended dose is 5.0 units.
```

**Prompt:** 
```
Is it safe to bolus? My current glucose is 65 mg/dL.
```

**Response:** 
```
No, it is not safe to bolus. Your blood glucose is below the safety threshold of 70 mg/dL.
```

**Prompt:** 
```
I took 5 units of insulin 2 hours ago. How much is left?
```

**Response:** 
```
Approximately 2.5 units of insulin are still active in your body.
```

## Frequently Asked Questions

**How does the tool calculate the total dose?**
The tool calculates the meal bolus based on carbohydrates and the correction bolus based on the difference between current and target glucose, then subtracts the active insulin (IOB) to prevent stacking.

**What happens if my blood glucose is too low?**
If the current blood glucose is below 70 mg/dL, the tool will trigger a hypoglycemia warning and recommend a dose of 0 to ensure safety.

**Can I use this to track my insulin on board?**
Yes, you can use `estimate_iob_decay` to estimate how much insulin remains active in your body based on the time elapsed since your last dose.
