Skip to main content
Glama
This connector has been deprecated

Replaced by garmlink.

Duplicate listing of the same server (same endpoint, https://api.garmlink.ai/mcp). garmlink is maintained under ai.garmlink.api/garmlink.

Get sleep

garmlink_sleep_get
Read-only

Daily sleep summaries, newest first — one compact object per night: total_min and per-stage minutes (deep_min/light_min/rem_min/awake_min), sleep score, skin_temp_deviation_c (deviation from the wearer's OWN calibrated baseline — the earliest illness/overreaching signal here), restless_moments, body_battery_change (what the night gave back), breathing_disruptions per hour, hrv_status, lowest_spo2/avg_sleep_spo2, plus overnight avg_spo2, avg_respiration, resting_hr and overnight_hrv when measured. Covers sleep quality, duration and recovery trends. Hollow (unmeasured) nights are omitted.

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

Input Schema

NameRequiredDescriptionDefault
toNoISO date upper bound (YYYY-MM-DD), inclusive. A time part is ignored: the calendar day written is used, with no timezone conversion.
fromNoISO date lower bound (YYYY-MM-DD), inclusive. When omitted, the most recent days are returned. A time part is ignored: the calendar day written is used, with no timezone conversion.
limitNoMax days returned, newest first (default 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"ISO date lower bound (YYYY-MM-DD), inclusive. When omitted, the most recent days are returned."New value: +"ISO date lower bound (YYYY-MM-DD), inclusive. When omitted, the most recent days are returned. A time part is ignored: the calendar day written is used, with no timezone conversion."
    • changedInput schema / properties / to / description
      Previous value: -"ISO date upper bound (YYYY-MM-DD), inclusive."New value: +"ISO date upper bound (YYYY-MM-DD), inclusive. A time part is ignored: the calendar day written is used, with no timezone conversion."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior, so the bar is lower. The description still adds real behavioral context: results are ordered newest first, one compact object per night, and 'Hollow (unmeasured) nights are omitted' — a filtering rule an agent would otherwise not know. It stops short of describing truncation behavior when more nights exist than the limit allows.

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 purpose is front-loaded in the first clause, and the long field enumeration is justified because no output schema exists. The field list is dense and could be grouped (e.g. stage minutes together) for faster scanning, but no sentence is pure 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 carries the return-shape burden and discharges it fully — naming every field, flagging conditional fields ('when measured'), noting the omission of hollow nights, and specifying ordering. For a read-only 3-param lookup tool, nothing essential is missing.

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 coverage is 100% and the three parameters (from, to, limit) are fully documented in the schema itself, including the timezone-ignoring date handling. The description adds nothing parameter-specific beyond echoing 'newest first,' which the limit field already states, so baseline 3 applies.

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?

States a specific resource and shape up front: 'Daily sleep summaries, newest first — one compact object per night,' then enumerates the exact fields returned. An agent can tell this apart from garmlink_hrv_get or garmlink_spo2_get because it declares those metrics are folded in only 'when measured,' positioning this as the consolidated nightly record.

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?

'Covers sleep quality, duration and recovery trends' implies the use case but never states when to pick this over the dedicated hrv/spo2/respiration/readiness siblings that overlap in content. No exclusions or prerequisites are given, so routing is inferred rather than guided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.