Skip to main content
Glama

CGM hypo events

cgm_hypo_events

Detect 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

TableJSON Schema
NameRequiredDescriptionDefault
toYesISO-8601 timestamp / date of the analysis window end.
fromYesISO-8601 timestamp / date of the analysis window start.
response_formatNoOutput shape. "structured" (default) returns the full event array. "summary" omits the per-event array, keeping totals + summary + recommendations.
threshold_mg_dlNoHypo threshold in mg/dL. Default 70 (ADA Level 1).
min_duration_minutesNoMinimum contiguous-minutes-below-threshold to count as an event. Default 15.
severe_threshold_mg_dlNoSevere hypo threshold in mg/dL. Default 54 (ADA Level 2).
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It explains the algorithm (contiguous runs, severity levels), output structure, and includes a medical disclaimer, but lacks disclosure of side effects, authentication needs, or error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph but well-structured, opening with version and main function, detailing output fields, and ending with a disclaimer. It is slightly lengthy but every sentence serves a purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (6 parameters, missing output schema), the description covers return structure, severity, recovery time, and totals. It lacks error conditions and edge cases but compensates with thorough algorithmic detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers 100% of parameters, yet the description adds significant value by explaining how parameters affect event detection (e.g., contiguous runs, recovery time calculation, severity thresholds) beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool detects hypoglycemia events over a specified date range, distinguishing it from sibling tools like cgm_daily_summary or cgm_time_in_range by focusing on event detection with severity and recovery metrics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use for detecting hypo events but does not explicitly state when to use versus alternatives among siblings, nor does it provide exclusions or prerequisites, leaving usage context somewhat implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidmosiah/wellness-cgm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server