Skip to main content
Glama

garmin_sleep

Read-onlyIdempotent

Retrieve per-night sleep details including bedtime, wake time, duration, stages, score, heart rate, SpO2, respiration, and feedback for a date range up to 366 days (default last 7).

Instructions

Per-night sleep: bedtime, wake time, duration, deep/light/REM/awake minutes, sleep score with sub-scores, average heart rate, sleep stress, SpO2, respiration, sleep need and Garmin's feedback. Filed under the wake-up date. Range up to 366 days, default last 7.

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": "garmin_sleep"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of days ending at end_date, used when start_date is omitted.
end_dateNoLast day, YYYY-MM-DD. Default: today.
start_dateNoFirst day, YYYY-MM-DD in the user's local calendar. Default: computed from end_date and days.

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
nightsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, openWorldHint), so the bar is lower, and the description still adds two genuinely non-obvious behaviors: records are keyed to the wake-up date rather than the sleep-onset date, and the window is capped at 366 days with a 7-day default. It does not discuss pagination or payload size at the 366-day maximum, which is the main remaining gap for an open-world read.

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?

A single dense block with the field inventory front-loaded and the operational constraints (wake-up date keying, range cap, default window) trailing in two short clauses. Every clause carries information; there is no restatement of the tool name or filler framing.

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 an output schema present, the description needn't document return shapes, and annotations cover safety; the schema itself fully documents all three optional params. What remains thin is routing guidance among the sleep-related siblings, which is the only thing an agent could still get wrong.

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 100%, so the baseline is 3, but the description adds meaning the schema omits: it supplies the actual default of 7 days, a value the schema leaves unstated for `days`, and clarifies the 366-day ceiling that bounds `start_date`/`days`. Enum and format details (YYYY-MM-DD, local calendar) are left entirely to the schema, appropriately.

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 a specific resource and enumerates exactly what each record contains (bedtime, wake time, stage minutes, sleep score with sub-scores, HR, stress, SpO2, respiration, sleep need, feedback), so an agent knows this is raw per-night sleep data rather than an aggregate or coaching tool. It never names or contrasts with the sibling garmin_sleep_analysis, so the differentiation is inferred from content depth rather than stated.

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?

It gives concrete framing cues — 'Filed under the wake-up date', 'Range up to 366 days, default last 7' — which tell the agent how to interpret and size a request. It stops short of stating when to prefer this over garmin_sleep_analysis or when a single night vs. a range is appropriate, so usage is implied rather than prescribed.

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