Skip to main content
Glama

Sleep

garmin_get_sleep
Read-onlyIdempotent

Retrieve sleep data for any date: sleep score, stages, wake times, SpO2, respiration, and resting heart rate. Choose summary for quick answers or full detail for per-minute series.

Instructions

Get sleep for the night ENDING on the given date: overall sleep score and its component ratings, time in deep/light/REM/awake, sleep and wake times, average overnight SpO2, respiration and resting heart rate. Ask for 'today' to get last night. With detail='full' this also returns per-minute sleep stage, movement and heart rate series, which are large.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate as YYYY-MM-DD, or relative: 'today', 'yesterday', '-7d', '-2w', '-3m'.today
detailNo'summary' (default) drops per-minute sample series and truncates long lists, which is what you want for almost every question. 'full' returns Garmin's raw payload including every sample -- accurate but potentially enormous, so use it only when the individual data points matter.summary
Behavior4/5

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

Annotations already declare readOnly and idempotent, so the description adds behavioral context beyond them: it clarifies the date boundary ('night ENDING'), introduces the impact of 'today' vs. a calendar date, and warns that detail='full' returns large per-minute series. This provides useful caution for usage without contradicting the annotations.

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 sentences that are packed with useful information and no fluff. The first sentence defines the primary purpose and the key data fields; the second clarifies the 'today' special case and the full-detail trade-off. Every sentence earns its place.

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?

For a tool with no output schema, the description is remarkably complete: it enumerates the fields returned, explains the date interpretation, and flags the payload size for full detail. Combined with rich annotations and a fully covered input schema, an agent has enough context to invoke the tool correctly.

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 coverage is 100% with descriptions for both 'date' and 'detail'. The description adds further semantic value by explaining the night-ending convention and explicitly linking 'today' to last night's data, as well as stressing the large size of full detail output. This goes beyond the schema's basic format and defaults.

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 clearly states the tool gets sleep data for the night ending on a given date, listing specific metrics like sleep score, time in stages, SpO2, respiration, and heart rate. This specific verb+resource clearly distinguishes it from sibling tools like Garmin's daily summary or HRV tools.

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 provides clear context on when to use the tool: it is for sleep data, and explicitly advises using 'today' for last night's sleep. It does not mention alternatives or exclusions, but the scope is well-defined enough for an agent to select the tool appropriately.

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

Install Server

Other Tools

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/nbaradar/garmin-mcp'

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