Skip to main content
Glama

See glucose statistics

get_stats
Read-onlyIdempotent

Statistics of a period (default: last 14 days, up to 180): time in range and in each band, mean, variability, episodes, and by time of day and weekday/weekend. Always a full query.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLocal date 'YYYY-MM-DD' or ISO 8601 date-time.
fromNoLocal date 'YYYY-MM-DD' or ISO 8601 date-time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, and non-destructive, so the safety profile is covered. The description adds behavior beyond that: the default range, the 180-day cap, and the note that it is 'always a full query,' which signals no partial or incremental retrieval. The 'always a full query' phrase is slightly cryptic about whether results are paginated.

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?

A single dense sentence front-loads the resource and scope, then lists the metrics, so nothing is buried. The closing fragment 'Always a full query' is vague enough that it doesn't fully earn its place without elaboration.

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?

With no output schema, the description correctly carries the burden of describing return contents by enumerating the metric families. Remaining gaps are minor but real: no unit convention (mg/dL vs mmol/L) and 'episodes' is left undefined for an agent unfamiliar with the domain.

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 coverage is 100% and the schema already documents the accepted date formats for from/to, so the baseline would be 3. The description adds real meaning on top: the default window when from/to are omitted and the maximum span of 180 days, which the schema does not state.

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

Purpose4/5

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

The description names the resource (glucose statistics for a period) and enumerates the exact metrics returned: time in range and per band, mean, variability, episodes, and breakdowns by time of day and weekday/weekend. That enumeration implicitly separates it from raw-data siblings like get_entries or get_glucose, though no sibling is named explicitly.

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?

Usage context is implied by the default window (last 14 days, up to 180), which tells the agent it can call with no arguments for a standard summary. However, there is no explicit guidance on when to prefer this over get_glucose or get_entries, and no statement of exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.