Skip to main content
Glama
Open Wearables

Open Wearables

Official

get_sleep_summary

Retrieve daily sleep summaries for a user over a date range, including start and end times, duration, and available sleep stages from wearable data.

Instructions

Get daily sleep summaries for a user within a date range.

This tool retrieves daily sleep summaries including start time, end time, duration, and sleep stages (if available from the wearable device).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "user_id": "<user_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_sleep_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesUUID of the user. Use get_users to discover available users.
end_dateYesEnd date in YYYY-MM-DD format. Example: "2026-01-07"
start_dateYesStart date in YYYY-MM-DD format. Example: "2026-01-01"

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 what is returned (start time, end time, duration, sleep stages) and flags the important conditional that stages may be absent depending on the wearable device, but it says nothing about permissions, rate limits, pagination, or read-only semantics beyond the word 'Get'.

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 short sentences, front-loaded with the purpose, with no filler. It loses a point only for mild redundancy: the second sentence restates 'daily sleep summaries' that the first sentence already established.

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 three-parameter read tool, all parameters are documented, and an output schema exists so return values need not be spelled out in prose. The only meaningful gap is the absence of any note on what happens when data is missing for dates in the range.

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% and every parameter (user_id, start_date, end_date) is documented in the schema with format examples, so the baseline of 3 applies. The description adds no date-format, timezone, or range-limit semantics beyond what the schema already provides.

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 verb and resource ('Get daily sleep summaries') and bounds the scope ('within a date range'), which is clearly separable from siblings like get_activity_summary or get_workout_events. It stops short of explicitly naming those alternatives, so a 4 rather than a 5.

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?

Usage is only implied: the date-range framing suggests this is the tool for period-based sleep reporting, but the description never states when to prefer it over get_timeseries or get_activity_summary, nor any exclusions or prerequisites. Adequate context, no routing guidance.

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