get_statistics
Compute glucose metrics for a chosen time window using Dexcom CGM readings, with adjustable thresholds and start/end offsets for targeted analysis.
Instructions
Get glucose statistics for a time period.
Args:
minutes: Number of minutes to analyze (1-1440, default 1440 = 24h)
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)
low: Low threshold in mg/dL (default 70)
high: High threshold in mg/dL (default 180)
data: Optional external readings for persistence layer integration.
Examples:
get_statistics(minutes=180) # Stats for last 3 hours
get_statistics(start_minutes=240, end_minutes=180) # Stats for 4h to 3h ago
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | No | ||
| data | No | ||
| high | No | ||
| minutes | No | ||
| end_minutes | No | ||
| start_minutes | No |