Skip to main content
Glama

get_sleep

Read-only

Retrieve Fitbit Air sleep data for a date range, including bed/wake times, stages, efficiency, naps, sleep scores/subscores, sleep debt, and SRI. Defaults to last 7 days.

Instructions

Nights (bed/wake local, stages, efficiency, naps), sleep scores with subscores, sleep debt, and the Sleep Regularity Index (SRI, -100..100, 100 = identical timing: how alike sleep/wake timing is from day to day, from the sleep score). Default 7 days. Or pass days=N for the last N days ending at end (default today); not with start.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
daysNo
startNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds genuine domain context, explaining what the payload contains (bed/wake local times, stages, efficiency, naps, death, and the SRI scale of -100..100 where 100 means identical daily timing). It stops short of describing authentication, pagination, or timezone handling.

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?

Two sentences, front-loaded with what you get and followed by how to scope it. The heavy parentheticals are dense but each clause carries information; nothing is filler.

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 no output schema, the description correctly spends its space describing the returned fields and the SRI semantics, and it documents the default window and parameter interaction. Complete enough to call correctly, with only the date-format detail missing.

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%, so the description carries the burden and does well: it explains days=N, that the window ends at end (default today), the 7-day default, and the start/days mutual exclusion. It does not specify the accepted date format for start or end, which is the remaining gap.

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 (sleep nights, scores, subscores, debt, SRI) and enumerates the data returned, so an agent can distinguish it from siblings like get_activity or get_trends. It lacks an explicit verb, but the scope is clear and concrete.

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 real usage rules for the parameters — default 7 days, days=N ending at end, and that days must not be combined with start — but says nothing about when to prefer this tool over sibling tools such as get_overview or get_trends. Usage is implied by the default window rather than stated vs alternatives.

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