Skip to main content
Glama

get_sleep

Retrieve sleep stages, duration, score, and related metrics for a specified night. Specify a date to access Garmin Connect sleep data.

Instructions

Get sleep data for the night ending on the given date: sleep stages, duration, sleep score, and related metrics.

Args: date_str: Date as YYYY-MM-DD. Defaults to today.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
date_strNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It does disclose useful behavior: it returns sleep stages, duration, score, and related metrics, and defines the night boundary. However, it does not mention timezone handling, missing-data behavior, or any other edge-case behavior, leaving some behavioral ambiguity.

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?

The description is two tight, front-loaded sentences with no filler. The main purpose and return contents come first, followed by the parameter detail in a compact Args block. Every sentence earns its place.

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?

For a single-optional-parameter getter with no output schema, the description adequately covers purpose, return contents, date semantics, and parameter format. It stops slightly short of being fully complete by not addressing timezone sensitivity or what happens when no sleep data exists, but those are minor for this simple tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description fully compensates by documenting date_str as 'Date as YYYY-MM-DD' and stating 'Defaults to today.' Despite the schema default being null, the description clarifies the effective default and format, which is exactly what an agent needs to invoke the tool correctly.

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 uses a specific verb and resource: 'Get sleep data for the night ending on the given date' and enumerates the returned content (sleep stages, duration, sleep score, related metrics). No sibling tool overlaps with sleep data, so the purpose 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 Guidelines4/5

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

The description clearly frames when the tool applies: retrieving sleep data for a particular night, with date boundaries specified by 'night ending on the given date' and a default of today. No explicit exclusions or alternative-tool routing are needed since no sibling covers sleep, though the description could have been more explicit about when not to use it.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sovnheim/garmin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server