Skip to main content
Glama

Eight Sleep Wellness Context

eight_sleep_wellness_context
Read-onlyIdempotent

Generates a normalized sleep-context payload from recent Eight Sleep trends, making sleep data accessible to downstream wellness tools without requiring direct API integration.

Instructions

Build a normalized delx-wellness-context/v1 payload from recent Eight Sleep trends so other Delx Wellness tools (nourish, exercise catalog, Telegram coaches) can read sleep context without knowing the Eight Sleep API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoLookback window in days for Eight Sleep trends.
notesNo
sorenessNo
timezoneNoIANA timezone used by the Eight Sleep API.UTC
injury_flagsNo
response_formatNomarkdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesYes
sourceYes
windowYes
sorenessYes
sleep_scoreNo
context_typeYes
data_qualityNo
generated_atYes
injury_flagsYes
strain_scoreNo
recovery_scoreNo
telegram_summaryNo
recommended_handoffYes
recent_training_loadYes
context_contract_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4/5.0
Behavior4/5

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

Annotations already provide the read-only/idempotent safety profile; the description adds the key behavioral trait that this tool transforms and normalizes trends rather than returning raw data. It discloses that it is a build/compute operation over trends and that its output is intended for downstream tools. No contradiction with annotations.

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 sentence that front-loads the verb, output, and source, then gives the consumer rationale. No filler or repetition of schema details. Every clause earns its place.

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?

The output schema and rich annotations cover return-value and safety context, and the description explains the tool's role in the ecosystem. However, for a tool with six optional parameters and sparse schema documentation, the description doesn't fully specify how inputs like soreness or injury_flags shape the payload. It is adequate for selection but not fully complete for invocation details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only days and timezone have schema descriptions (2 of 6 parameters, ~33% coverage), and the description doesn't explain notes, soreness, injury_flags, or response_format semantics. Soreness and injury_flags are suggestive by name but their effect on the normalized payload is unclear. Since schema coverage is low, the description needed to compensate and did not.

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 states a specific verb ('Build'), an explicit output resource ('delx-wellness-context/v1 payload'), and a source ('recent Eight Sleep trends'). It also names downstream consumers, which differentiates it from sibling Eight Sleep data-access tools like eight_sleep_get_trends. Clear and distinct.

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

Usage Guidelines4/5

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

The description positions the tool as an integration/normalization layer for other Delx tools, implying it should be selected when sleep context is needed in the normalized format rather than raw Eight Sleep API output. It doesn't explicitly exclude direct alternatives or list exhaustive conditions, but the consumer rationale gives clear context for when to use it.

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