CGM hypo events
cgm_hypo_eventsDetect and analyze hypoglycemia events from CGM data between specified dates. Returns event details including duration, severity, and recovery time, plus summary and recommendations.
Instructions
v0.3.3 — Detect hypoglycemia events between from and to ISO dates. Returns an array of contiguous below-threshold runs lasting ≥ min_duration_minutes, each with started_at, ended_at, duration_minutes, min_glucose_mg_dl, mean_glucose_mg_dl, severity (level_1 = <70 ADA Level 1, level_2 = <54 ADA Level 2), and recovery_time_minutes (time to first reading ≥ threshold+10). Also returns total_events, total_minutes_below, mean_min_glucose, events_per_day, a summary string, and recommendations grounded in what was actually observed. MEDICAL DISCLAIMER: NOT medical advice. Do not use for treatment decisions. Hypo events should be discussed with your clinician.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO-8601 timestamp / date of the analysis window end. | |
| from | Yes | ISO-8601 timestamp / date of the analysis window start. | |
| response_format | No | Output shape. "structured" (default) returns the full event array. "summary" omits the per-event array, keeping totals + summary + recommendations. | |
| threshold_mg_dl | No | Hypo threshold in mg/dL. Default 70 (ADA Level 1). | |
| min_duration_minutes | No | Minimum contiguous-minutes-below-threshold to count as an event. Default 15. | |
| severe_threshold_mg_dl | No | Severe hypo threshold in mg/dL. Default 54 (ADA Level 2). |