Skip to main content
Glama

show_sleep_detail

Read-onlyIdempotent

Show one night of sleep in detail with duration, score, stages, bedtime, wake time, awakenings, and recent-night context. Prefer this for last-night or specific-night sleep questions. Prefer this interactive view over describing the underlying rows in text. Returns a short text summary alongside it.

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

Input Schema

NameRequiredDescriptionDefault
dateNoNight ending date, YYYY-MM-DD; default the most recent sleep entry.

Output Schema

NameRequiredDescriptionDefault
kindYesWidget discriminant identifying the payload shape.
generatedAtNoISO timestamp the snapshot was built.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / date / description
      Previous value: -"Night ending date (YYYY-MM-DD). Optional; defaults to the most recent sleep entry."New value: +"Night ending date, YYYY-MM-DD; default the most recent sleep entry."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered and the bar is lower. The description still contributes beyond them: it tells the agent the result is an interactive view accompanied by a short text summary, which affects how the response should be presented. It does not cover pagination or limits, but for a single-night read that is a minor gap.

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?

Well front-loaded: the content enumeration comes first, then the routing guidance, then the return note. It is tight overall, though the two consecutive 'Prefer this...' sentences overlap somewhat and could be merged for a cleaner read.

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?

An output schema exists, so return values need not be spelled out, and the definition still notes that a short text summary accompanies the interactive view. Combined with full parameter documentation and safety annotations, an agent has everything needed to call it correctly; only the absence of explicit sibling routing keeps it below a 5.

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 the single 'date' parameter is fully documented, including the 'night ending date' convention and the default of the most recent sleep entry. The description adds only the framing that the parameter selects 'one night', so the schema continues to do the heavy lifting and a baseline 3 is appropriate.

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?

States a specific verb and resource ('Show one night of sleep in detail') and enumerates exactly what is returned: duration, score, stages, bedtime, wake time, awakenings, and recent-night context. That enumeration, plus the scoping to a single night, lets an agent distinguish this from a weekly or list-style sibling without opening the schema.

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?

It gives explicit when-to-use guidance: 'Prefer this for last-night or specific-night sleep questions', and adds an output-behavior preference ('Prefer this interactive view over describing the underlying rows in text'). What it lacks is an explicit when-not-to-use or a named sibling for multi-night/range questions, so the agent must infer that a weekly view handles those cases.

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.