Skip to main content
Glama

get_sleep

Retrieve per-night sleep metrics for a date range, including hours slept, deep/REM/light/awake minutes, and sleep scores; recent nights can refresh for finalized Garmin data.

Instructions

Per-night sleep in [start, end] (YYYY-MM-DD, inclusive).

    Returns hours slept, deep/REM/light/awake minutes, and sleep score per
    night. Recent nights may silently refresh — watches sync late and Garmin
    finalises sleep scoring the following morning.
    

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "get_sleep"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
force_refreshNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses the cached/stale-data trait ('recent nights may silently refresh'), explains the underlying cause (late watch sync, next-morning Garmin scoring finalisation), and enumerates the returned metrics. It stops short of stating what force_refresh does to that caching behavior or any auth/rate constraints.

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?

Two tight blocks: the scope and format first, then return contents and the refresh caveat. Nothing is redundant, and the most decision-relevant fact (what range, what precision) is front-loaded.

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?

There is no output schema, and the description compensates by naming the returned fields (hours slept, sleep stage minutes, sleep score). For a three-parameter read tool with no annotations this is largely sufficient, with the main residual gap being the unexplained force_refresh parameter and no note on behavior for very large ranges.

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 0% across three parameters, so the description must compensate. It does define start and end semantics well (YYYY-MM-DD, inclusive bounds), but force_refresh is never named or explained — the agent must infer its meaning from the separate 'silently refresh' sentence, which actually describes default rather than forced behavior.

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 states a specific resource and scope: per-night sleep records bounded by an inclusive [start, end] date range, with the expected date format given inline. It is clear what data is returned, though it does not name or contrast itself with siblings such as get_daily_summary or get_trends that could plausibly return overlapping wellness data.

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

Usage Guidelines2/5

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

There is no explicit when-to-use statement and no mention of alternatives, so an agent has to infer from context that this is the sleep-specific retrieval path. The only usage-adjacent guidance is the date format and inclusivity of the range, which is about invocation mechanics rather than tool selection.

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