Skip to main content
Glama

Post-meal target window analysis

get_meal_window_analysis
Read-only

Evaluate post-meal glucose excursions and dose effectiveness by analyzing 30 minutes before and 3 hours after a meal bolus event from a single timestamp.

Instructions

A focused look around a single event (typically a meal bolus): exactly 30 minutes before and 3 hours after the timestamp you pass.

Use it to judge a post-meal excursion and how well a dose worked, without pulling whole days. Find the event time first (e.g. from get_enriched_bolus_log), then pass it here.

Glucose values are in the configured unit; times are plain wall clock time (device-local), not UTC.

Returns: targetEvent (the timestamp you passed), unit, a glucoseTimeline array (time, value) across the window, and an associatedBoluses array of enriched bolus records that fall in the window.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitsNoOptional. Glucose unit for this call. Omit to use the unit configured on the server (OMNI_UNITS). One of: "mmol" (mmol/L) or "mgdl" (mg/dL). Pass only to override the configured unit for this one call.
eventTimestampYesThe concrete ISO 8601 timestamp of the meal/bolus event, in plain wall clock time (device-local) — use the exact wall-clock digits, no UTC conversion. Returned times are likewise wall clock, not UTC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is known. The description goes beyond by clarifying time is device-local wall clock (not UTC), glucose units follow configuration or override, and returning specific arrays (glucoseTimeline, associatedBoluses). This adds useful behavioral context without contradicting annotations.

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

Conciseness5/5

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

The description is well-structured: scope first, then usage, then conventions, then return shape. Every sentence earns its place, with no fluff or repetition. It is detailed but efficient.

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

Completeness5/5

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

With no output schema, the description explicitly lists the return fields (targetEvent, unit, glucoseTimeline, associatedBoluses), satisfying return expectations. The two parameters are fully explained in schema. For a focused read-only analysis tool, nothing critical is missing.

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

Parameters3/5

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

Schema coverage is 100% – both eventTimestamp and units already have detailed descriptions covering wall-clock time, optional override, and unit enums. The description adds some usage context (how to find the event time) but does not materially extend parameter semantics beyond what the schema provides, so baseline 3 is appropriate.

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 states a specific verb/resource: a focused analysis window around a single meal bolus event, exactly 30 minutes before and 3 hours after the timestamp. It clearly distinguishes itself from 'pulling whole days' and relates to the sibling get_enriched_bolus_log for finding the event, making its purpose unmistakable.

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

Usage Guidelines5/5

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

It explicitly says when to use it ('judge a post-meal excursion and how well a dose worked') and even gives a prerequisite workflow: find the event time via get_enriched_bolus_log, then pass it here. This is strong usage guidance that differentiates it from day-level or historical tools.

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