CGM daily summary
cgm_daily_summaryReturns daily glucose statistics (mean, median, min/max, standard deviation, GMI, CV, time-in-range) from CGM data, computed over the actual observed window to ensure accurate reporting.
Instructions
Returns daily glucose stats: mean, median, min/max, stdev, GMI (estimated A1C), CV, time-in-range (diabetic 70-180 + metabolic-health 70-140). window_hours is what was REQUESTED; every stat is computed over hours_covered / observed_window, which can be shorter — FreeStyle Libre (LibreLink Up) caps a live read at ~12h, so a 72h request yields a half-day metric and notes flags it. Never report these numbers as covering more than hours_covered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Window size; default 24. | |
| privacy_mode | No | Optional privacy mode: summary | structured | raw. summary omits device/patient identifiers when present; structured/raw return full payload. |