Skip to main content
Glama

list_sleep

Read-onlyIdempotent

List primary overnight sleep and daytime naps in a date range. Overnight: duration, Wellness Project sleep score, the source's own sleep score when recorded, stages, and timezone-aware bedtime/wake times. Naps: listed separately with duration and start/end times; they never increase the overnight total or score. range: max 31 days per call; longer periods -> multiple calls with sequential date ranges. INFER, do not ask: the date range; defaults are on the params.

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

Input Schema

NameRequiredDescriptionDefault
end_dateNoYYYY-MM-DD; default today.
start_dateNoYYYY-MM-DD; default 14 days ago.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / end_date / description
      Previous value: -"End of date range. Format: YYYY-MM-DD. Default: today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start of date range. Format: YYYY-MM-DD. Default: 14 days ago."New value: +"YYYY-MM-DD; default 14 days ago."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish the safe read profile (readOnly, idempotent, non-destructive, closed-world), and the description adds meaningfully beyond that: a hard 31-day range cap, timezone-aware timestamps, and the important semantic rule that naps never increase the overnight total or score. It does not mention rate limits or ordering, but the behavioral picture is solid for a read tool.

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?

Front-loaded with the core action, then structured into labeled overnight/nap/range/instruction segments so an agent can scan it. Every sentence carries distinct information; the only mild redundancy is enumerating returned fields when an output schema already exists.

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?

For a two-parameter read tool with full schema coverage, annotations, and an output schema, the definition covers the decisions an agent must make: range defaults, the span limit, chunking across long periods, and how naps relate to overnight totals. Ordering or pagination behavior is the only notable omission, and it is minor.

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% and both parameters carry their own defaults, so the baseline is already a 3. The description adds a constraint that lives nowhere in the schema — the 31-day maximum span between start_date and end_date — plus a pointer that the defaults are authoritative, which changes how an agent fills the range.

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 uses a specific verb ('List') plus resource ('sleep and daytime naps in a date range') and explicitly splits the two data types: overnight records (duration, sleep score, stages, timezone-aware bed/wake times) and naps (listed separately). It is clear what the tool returns, but it never names a sibling such as show_sleep_detail, show_week_sleep, or log_sleep, so differentiation from those is left implicit.

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 operational guidance: the 31-day maximum per call, the fallback of multiple calls with sequential ranges, and an explicit 'INFER, do not ask' instruction pointing to the parameter defaults. What is missing is when to choose this tool over the sibling sleep tools (detail view, week view, logging), so usage is implied rather than routed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.