Skip to main content
Glama

show_week_sleep

Read-onlyIdempotent

Visual sleep duration and score trend for 7d, 30d, 90d, or 1y. Returns an interactive chart plus short summary.

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_week_sleep"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNoTime window; default 7d.

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 / range / description
      Previous value: -"Time window. One of 7d, 30d, 90d, 1y. Default 7d."New value: +"Time window; default 7d."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds that the return is an interactive chart plus a short summary, which is useful behavioral context for an agent deciding whether it can consume the result, but nothing is said about data gaps, missing nights, or chart rendering constraints.

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?

Two short sentences with zero filler: purpose and supported ranges first, return shape second. Every clause earns its place.

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?

With rich annotations, a fully described single enum parameter, and an output schema, the description only needs to state purpose and output nature, which it does. The remaining gap is sibling differentiation against show_sleep_detail, which affects selection more than invocation.

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 optional parameter is a closed enum with a documented default of 7d, so the schema carries the semantics. The description only restates the same enum values, adding no new meaning about how the window is computed or aligned.

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 output ('visual sleep duration and score trend') and enumerates the supported windows, so the agent knows exactly what it produces. It does not distinguish itself from the close sibling show_sleep_detail, leaving the agent to infer that this one is the aggregated trend/chart view rather than per-night detail.

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?

Listing the 7d/30d/90d/1y windows implies the usage context (viewing trends over a chosen window), which is enough to pick a range. However, there is no explicit when-to-use versus show_sleep_detail or list_sleep, and no guidance on which window to prefer for which question.

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.