Skip to main content
Glama

get_sleep_detail

Get a detailed breakdown of a night's sleep by wake-up date, including stage timeline, score components, sleep need, skin temperature, and naps.

Instructions

A night in detail (date = the morning you woke up): stage timeline in local time, score components with Garmin's qualifiers, sleep need, skin temperature, and naps that day.

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": {
      "date": "<date>"
    },
    "name": "get_sleep_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose the content and time basis (local time, naps included that day) of the result. It never states that this is a read-only operation, nor anything about permissions, missing-data behavior, or rate limits. For a simple getter with an output schema this is acceptable but not thorough.

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 sentence, front-loaded with the resource and the critical date disambiguation before the field enumeration. The list of returned components is dense but each item carries information; nothing is redundant. The embedded parenthetical slightly interrupts flow but is placed well.

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?

An output schema exists, so return values need not be spelled out, yet the description still summarizes them usefully. For a one-parameter read tool with no annotations, the essential information an agent needs to call it correctly is present; only the date string format and empty-night behavior are unaddressed.

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% for the single parameter, so the description must compensate, and it does so on the most consequential ambiguity: 'date = the morning you woke up' pins down which night is returned. The remaining gap is the expected string format, which is left to the schema's bare 'string' type.

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 (a night's sleep) and enumerates exactly what it returns: stage timeline in local time, score components with Garmin's qualifiers, sleep need, skin temperature, and naps. This makes it clearly distinct from general-purpose siblings like get_day or get_timeseries without needing to name them. It stops short of a full sibling differentiation statement, but the content scope is unambiguous.

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 or when-not-to-use guidance and no mention of alternatives such as get_day or get_range_summary. The parenthetical about which date maps to which night is helpful, but it clarifies the input rather than telling the agent when this tool is the right choice over another.

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