Skip to main content
Glama

get_sleep_range

Retrieve nightly sleep statistics and averages across a date range; optionally include daily sleep scores to analyze sleep patterns over time.

Instructions

Get nightly sleep statistics and averages across a date range.

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

Input Schema

NameRequiredDescriptionDefault
endDateNoEnd date (YYYY-MM-DD), defaults to today
startDateNoStart date (YYYY-MM-DD), defaults to 7 days ago
includeScoresNoIf true, also includes daily sleep score entries

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden; it does reveal that results include per-night statistics and computed averages, which is useful return-shape context absent an output schema. However, it says nothing about auth requirements, pagination, result size limits, or behavior when the range is empty.

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 well-formed sentence with the resource and scope front-loaded and no filler. Nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter read tool this covers the core purpose, and the schema handles parameter detail. But with no annotations and no output schema, the description should mention at minimum what the returned statistics contain or how defaults interact with large ranges.

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 description coverage is 100%, so all three parameters (startDate, endDate defaults, includeScores) are already documented in the schema. The description adds no additional meaning about date formats, default behavior, or what includeScores changes, so the baseline 3 applies.

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?

States a specific verb and resource ('Get nightly sleep statistics and averages') plus the scope ('across a date range'), so an agent knows it returns aggregated multi-night sleep data. It does not differentiate itself from the sibling 'get_sleep_data', leaving ambiguity about which sleeps tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no exclusions, and no named alternative such as get_sleep_data. The only hint is the phrase 'across a date range', which implies multi-day retrieval but requires the agent to infer it.

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

Deploy Server

Other Tools