Skip to main content
Glama

Eight Sleep Temperature Trend

eight_sleep_temperature_trend
Read-onlyIdempotent

Summarize sleep trends and temperature settings for recent nights, showing score stats plus a correlation note when bedtime temperature impacts sleep quality.

Instructions

Workflow tool: returns the current smart-temperature schedule (bedtime/initial/final level), per-night sleep scores for the last N nights, mean/median/range/most-common for bedtime AND wake temperature settings when the trends payload exposes them, and a correlation note (e.g. 'colder bedtime → higher sleep score') ONLY when 3+ paired nights support |r| >= 0.5. Reuses get_temperature + get_trends data — no extra API calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of recent nights to summarize. Default 7.
timezoneNoIANA timezone for grouping nightly records. Default UTC.UTC
response_formatNomarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.13
  2. Removedv0.2.6
  3. First observedv0.2.5

TDQS

A4.1/5.0
Behavior5/5

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

The description discloses specific conditional behavior: the correlation note appears only when 3+ paired nights support |r| >= 0.5, and statistics are reported only when the trends payload exposes them. It also states there are no extra API calls, adding value beyond the readOnly and idempotent annotations.

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?

The single sentence is information-dense but front-loads the purpose with 'Workflow tool: returns...' and packs conditions into parentheticals. It contains no filler, though splitting it into shorter sentences would improve readability.

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?

The description covers output components, data sources, statistical thresholds, and conditional availability of results, which is strong for a read-only summary tool without an output schema. It does not spell out edge cases like insufficient paired nights or default timezone behavior, but the conditional phrasing implies those cases.

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?

The schema already covers days and timezone with descriptions, and response_format has enum/default values. The description adds some output-level context but does not clarify response_format semantics or the timezone grouping behavior in more detail. With 67% schema coverage, the schema carries the burden adequately, but the description could compensate more.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('returns') and enumerates concrete resources: the smart-temperature schedule, per-night sleep scores, summary statistics, and a conditional correlation note. It also identifies itself as a workflow reusing get_temperature and get_trends data, which clearly separates it from sibling tools that fetch raw temperature or trend data.

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 description states that it is a workflow tool and that it reuses get_temperature and get_trends data with no extra API calls, implying it is the right choice for consolidated analysis. However, it does not explicitly say when to choose this tool over those raw-data siblings or provide exclusion criteria.

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