Skip to main content
Glama

Sleep summaries

get_sleep_summaries
Read-onlyIdempotent

Retrieve night-by-night sleep summaries over a date range, including sleep stages, scores, heart rate, SpO2 and sleep need versus baseline, to spot patterns across up to 92 days.

Instructions

Night-by-night sleep over a range, one compact row per night filed under the date the user woke up: start_local/end_local as local 'YYYY-MM-DD HH:MM'; hours of sleep, deep, light, REM and awake (and naps); sleep score with its quality and factor ratings; average HR, stress and respiration (avg/low/high); SpO2 average/lowest; sleep need vs baseline in minutes with what drove it (training load, e.g. HIGH_ACWR_AND_CHRONIC, HRV, sleep history, naps) and next night's need; Garmin's insights. For last night alone use get_readiness or get_sleep; for trends over weeks or months use summarize_wellness. Up to 92 days per call: pass a period (e.g. last_7_days, last_30_days, this_month) or start_date/end_date. detail='full' returns Garmin's raw records.

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_sleep_summaries"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNocompact (default) keeps the meaningful fields in readable units; full returns Garmin's raw payload.compact
periodNoNamed period resolved in the user's time zone (weeks start Monday). Use instead of start_date/end_date.
end_dateNoLast day, YYYY-MM-DD, inclusive. Defaults to start_date. Max span 92 days.
start_dateNoFirst day, YYYY-MM-DD, inclusive. Required unless period is given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.1
    • changedInput schema / properties / period / enum
      Previous value: -[
      -  "today",
      -  "yesterday",
      -  "last_7_days",
      -  "last_28_days",
      -  "last_30_days",
      -  "last_90_days",
      -  "last_365_days",
      -  "this_week",
      -  "last_week",
      -  "this_month",
      -  "last_month",
      -  "this_year",
      -  "last_year"
      -]New value: +[
      +  "today",
      +  "yesterday",
      +  "last_7_days",
      +  "last_28_days",
      +  "last_30_days",
      +  "last_90_days",
      +  "last_180_days",
      +  "last_365_days",
      +  "this_week",
      +  "last_week",
      +  "this_month",
      +  "last_month",
      +  "this_year",
      +  "last_year"
      +]
  2. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds meaningful context beyond annotations: rows are filed under the wake-up date, timestamps are in local 'YYYY-MM-DD HH:MM' format, detail='full' returns raw Garmin records, and the 92-day cap is stated. It does not mention empty-night handling or pagination, but for a read-only retrieval tool the disclosure is strong.

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 a dense but front-loaded paragraph that starts with purpose and then covers return fields, alternatives, and limits. Every sentence carries useful information, though the long field enumeration could be more scannable with bullets; it avoids filler.

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 must carry the burden of explaining returned data, and it does so comprehensively: sleep stages, scores, HR/stress/respiration, SpO2, sleep need drivers, and Garmin insights. Combined with usage guidance and range limits, an agent has everything needed to call the tool correctly.

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 description coverage is 100%, so the schema already documents detail, period, start_date, and end_date thoroughly. The description reinforces the 92-day limit and gives period examples, but these are largely repetitions of enum values and the end_date max-span note. It adds little new meaning beyond the structured fields.

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 and resource ('Night-by-night sleep over a range') and immediately defines the row granularity and timestamp semantics, making it distinguishable from siblings like get_sleep and summarize_wellness.

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 explicitly routes the agent: use get_readiness or get_sleep for last night alone, and summarize_wellness for trends over weeks or months. The only gap is mild ambiguity because this tool itself accepts ranges up to 92 days, which overlaps with 'trends over weeks or months', so an agent may briefly hesitate between detailed per-night retrieval and summarized trends.

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