get_glucose_readings
Retrieve historical glucose readings from Dexcom CGM for custom time windows, enabling trend analysis and health data insights.
Instructions
Get historical glucose readings.
Args:
minutes: Number of minutes to look back from now (1-1440, default 60)
start_minutes: Window start - minutes ago from now (e.g., 240 = 4 hours ago)
end_minutes: Window end - minutes ago from now (e.g., 180 = 3 hours ago)
max_count: Maximum readings to return (1-288, default 288)
data: Optional external readings for persistence layer integration.
Examples:
get_glucose_readings(minutes=60) # Last hour
get_glucose_readings(start_minutes=240, end_minutes=180) # 4h ago to 3h ago
get_glucose_readings(start_minutes=360, end_minutes=300) # 6h ago to 5h ago
Note: When using start_minutes/end_minutes, we fetch from start_minutes back
and filter to the window. start_minutes should be > end_minutes (further back in time).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| minutes | No | ||
| max_count | No | ||
| end_minutes | No | ||
| start_minutes | No |