Skip to main content
Glama

get_sleep_summary_range

Retrieves sleep summaries for each night in a specified date range, providing sleep score, duration, stages, HRV, and resting HR to analyze sleep trends over weeks or months.

Instructions

Get lightweight sleep summaries for every night in a date range.

Returns the same curated metrics as get_sleep_summary (sleep score, duration, sleep stages, HRV, resting HR, etc.) for each night between start_date and end_date, inclusive. Use this instead of calling get_sleep_summary once per night when analyzing sleep trends over weeks or months.

Note: Garmin Connect does not expose a native range endpoint for sleep, so this makes one request per night internally. Recommended range: up to a few weeks for quick checks. Maximum: 90 nights per call.

Args: start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYes
start_dateYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It mentions that the tool makes one request per night internally and sets a maximum range, which are valuable behavioral details. However, it does not explicitly state that it is read-only or mention any authentication or rate-limit considerations, leaving some gaps.

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 well-organized with a clear initial statement, a usage note, and a separate paragraph for limitations. It is slightly repetitive in the first two sentences, but the overall structure is easy to follow and not excessively verbose.

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?

The description explains the purpose, usage, and constraints, and mentions that it returns the same metrics as get_sleep_summary, giving the agent a reasonable idea of the output. It does not fully enumerate the return schema, but the reference to a sibling tool and the list of example metrics make it sufficiently complete for decision-making.

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

Parameters5/5

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

The description specifies the date format (YYYY-MM-DD) for both start_date and end_date, and clarifies that the range is inclusive. This adds meaningful information beyond the bare schema definition and ensures the agent can construct valid arguments.

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 that the tool retrieves lightweight sleep summaries for a range of dates, and explicitly distinguishes it from the sibling get_sleep_summary tool by saying it should be used when analyzing sleep trends over weeks or months. This gives the agent a precise understanding of the tool's function and its intended scope.

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?

The description provides explicit guidance on when to use this tool instead of get_sleep_summary, and includes practical constraints such as the recommended range and maximum of 90 nights. It also discloses that it makes one request per night internally, which helps the agent anticipate performance implications.

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

Deploy Server

Other Tools