Skip to main content
Glama

get_sleep_data

Retrieve sleep stages, duration, score, respiration, and SpO2 for a chosen date, with an option to return a compact summary without raw sensor arrays.

Instructions

Get sleep data for a specific date (sleep stages, duration, sleep score, respiration, SpO2). Set summaryOnly=true for a compact summary without raw sensor arrays.

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_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate in YYYY-MM-DD format (defaults to today)
summaryOnlyNoIf true (default), returns compact sleep summary without bulky per-minute sensor arrays

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return payload shape and that the default mode drops 'bulky per-minute sensor arrays', which is genuinely useful cost-information; however, it says nothing about authentication, empty-result behavior, or whether the call is read-only and side-effect free.

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 the resource and scope, with no filler. The only waste is the mild repetition of the summaryOnly behavior that the schema already states verbatim.

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?

This is a simple two-parameter read tool with no output schema and no annotations, and the description compensates by listing the returned fields and explaining the payload-size tradeoff. The remaining gap, handling of missing data for a date, is minor for a tool of this complexity.

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 both parameters are already documented with format and default. The description's note about summaryOnly largely restates the schema's own wording, and it adds no new semantics such as the cost or latency difference between the two modes.

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 sleep data') plus the exact key ('for a specific date') and enumerates what comes back (stages, duration, score, respiration, SpO2). The date-scoped framing implicitly separates it from get_sleep_range, but the sibling is never named, so an agent must infer that distinction.

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?

The phrase 'for a specific date' implies this is the per-day lookup rather than a range query, and 'Set summaryOnly=true for a compact summary' gives a practical calling hint. There is no explicit when-to-use vs get_sleep_range statement and no guidance on what to do when no sleep record exists for the date.

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