MCP server exposing Glooko diabetes device data (any pump/CGM combination) for clinical audit, with device-agnostic capability discovery. Forked from podquery-mcp.
Strong foundation with 18 tools covering a specialized diabetes data analysis domain. All tools have clear, detailed descriptions (averaging 150-250 chars) and full input schemas with type definitions. Naming follows consistent verb_noun patterns (glucose_*, bolus_*, basal_*, etc.). However, OUTPUT schemas are not documented in the source, LLMs cannot infer what fields each tool returns. Tool composition is excellent (each does one thing), and parameter descriptions are exceptionally thorough with wall-clock timezone caveats. No input validation details visible. Error handling patterns not evident. Security is solid (no credentials in params; environment-based injection). Desktop extension architecture limits transport but is appropriate for the use case.
Basal (background insulin) state history: active periods, state (normal / suspend / max), and duration for each segment.
Summary of basal activity: percentage of time in each state (normal / suspend / max) and total minutes per state across the window.
Ratio of bolus to basal insulin delivery: percentage and absolute units for bolus vs. basal across the window.
All bolus (insulin) events in the window: timestamp, units, carbs, bolus type (meal / manual correction / etc.), and delivered vs. programmed amounts. Useful for understanding insulin delivery patterns.
Per-day insulin breakdown: basal, bolus, and total units, grouped by calendar day across the window.
A detailed CGM trace chart (glucose line, bolus markers, basal states, statistics) in interactive HTML. Opens in the browser automatically if possible. Returns the file path and a JSON summary if auto-open fails.
Output schemas not documented. Tool descriptions explain what data is returned (e.g., 'Returns glucose distribution statistics...') but the source code does not show explicit schema definitions for response objects. LLMs cannot plan downstream operations without knowing field names and types.
No input validation or error handling guidance visible in source. Tools accept date strings and numeric boundaries but lack documented constraints (e.g., start must be before end, lower < upper). Error paths and recovery suggestions are not exposed.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 55 | 2026-07-28+ | v2 |
Build a device capability discovery report for the last 30 days of archive data: which fields are populated and how often, grouped by device type (pump / CGM). Used internally for the registry submission workflow.
Device capability snapshot: which optional fields (e.g. mealTag, BGInput, carbs) are actually populated in the local archive. Useful for understanding what this device/account combo can report.
Generate a human-readable device capability registry contribution report (device name, discovered fields, confidence level, synthetic examples). Intended for review before submission to the public schema-registry.
Time-in-range (TIR), time-low and time-high percentages for the window. Returns glucose distribution statistics including TIR, time below target, and time above target. Optionally override glucose unit and boundaries per-call.
Hour-of-day breakdown: median, 25th/75th percentiles, and min/max for each hour (0–23), across the entire window. Useful for spotting patterns like morning dawn phenomenon or post-meal spikes.
Average, median, standard deviation, min, and max glucose across the window, with optional per-call unit/boundary overrides.
Meal logging statistics: number of meals logged, average carbs, carb range, and meals with carbs vs. without.
Pump mode state breakdown (e.g., closed-loop vs. open-loop, exercise mode, etc.): percentage of time in each mode and total minutes.
Split (extended/dual-wave) boluses only, with initial delivery percentage, extended delivery percentage, duration (e.g. '2h'), and overlap analysis. Shows patterns in how the pump delivers insulin over time.
Summary statistics for split boluses: frequency, average initial/extended percentages, average duration, and total units delivered.
Submit discovered device capability entries to the local schema-registry/ directory (pumps/ or cgms/). Requires explicit confirmation via chat (REQUIRED_PHRASE must appear in the model's message). Writes JSON registry entries to disk.
Fetch the latest data from the user's Glooko account and merge it into the local archive. Requires GLOOKO_EMAIL and GLOOKO_PASSWORD to be set in the environment.
submit_registry_contribution requires explicit confirmation phrase ('I confirm this is ready to submit'), but source code does not show how error or rejection is communicated to the LLM. Confirmation pattern implementation is opaque.
Parameter constraints (e.g., 'lower < upper', 'start < end') are not formally declared in the input schema. Descriptions mention these constraints in prose, but JSON Schema minValue, maxValue, and custom validation rules are not visible.
No per-tool risk/scope declarations or permission gates visible. Tools like sync_glooko_account (marked WRITE) could benefit from explicit scope requirements (e.g., 'requires user confirmation before syncing') and audit trail hooks.