Skip to main content
Glama

summarize_glucose_file

Read-only

Analyze a glucose meter CSV to return period covered, mean, standard deviation, CV, time-in-range zone shares, and breakdowns by meal context and time of day.

Instructions

Read a glucose meter CSV file and return descriptive statistics.

Returns the period covered, mean, standard deviation, coefficient of variation (CV), the share of readings in each zone (very low, low, in range, high, very high), and breakdowns by meal context and time of day. All values are in mmol/L.

Args: file_path: A file name from list_glucose_files (looked up in the data folder), or a full path to a CSV file. last_days: Only analyze the last N days of the file (counted back from the most recent reading). Omit to analyze the whole file. very_low: Level 2 hypoglycemia threshold in mmol/L (below = very low). low: Hypoglycemia threshold in mmol/L (below = low). high: Hyperglycemia threshold in mmol/L (above = high). very_high: Level 2 hyperglycemia threshold in mmol/L (above = very high).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_path": "<file_path>"
    },
    "name": "summarize_glucose_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
lowNo
highNo
very_lowNo
file_pathYes
last_daysNo
very_highNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context: all values are in mmol/L, last_days is counted back from the most recent reading, and thresholds define strictly-below/strictly-above comparisons. It does not discuss behavior for missing/invalid files or very large files, which keeps it from a 5.

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 summary sentence and return-value breakdown are front-loaded, and the Args section maps one-to-one onto the six parameters with no filler. It is slightly longer than strictly necessary since return values are also captured by the output schema, but no sentence is wasted.

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?

For a six-parameter read-only analysis tool with an output schema and annotations present, the description supplies everything an agent needs: purpose, input sourcing, windowing semantics, threshold semantics, units, and output contents.

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 description coverage is 0%, so the description carries the full burden and does so: it explains file_path resolution, last_days windowing semantics, and the direction of each threshold (below vs. above) in mmol/L. Only minor details are missing, such as whether thresholds affect only the zone shares or any other output.

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 opens with a specific verb and resource: 'Read a glucose meter CSV file and return descriptive statistics,' then enumerates exactly what statistics are returned (period, mean, SD, CV, zone shares, meal/time-of-day breakdowns). This clearly separates it from list_glucose_files (which it references as the source of file names) and create_report.

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

Usage Guidelines4/5

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

It states concretely how to obtain a valid file_path ('A file name from list_glucose_files ... or a full path to a CSV file') and explains that last_days is optional, with omission meaning 'analyze the whole file.' There is no explicit when-not-to-use or exclusion guidance, but the invocation context is unambiguous.

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