Skip to main content
Glama

Sleep summary

get_sleep_summary
Read-onlyIdempotent

Nightly sleep summaries: duration, sleep stages, quality score.

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

Input Schema

NameRequiredDescriptionDefault
days_backNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already declare this to be a safe, read-only, idempotent operation. The description adds useful context about what the summary contains, but it does not explain the effect of days_back, whether results are aggregated nightly, or what the response structure looks like.

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?

The description is a single compact sentence that front-loads the resource and lists the key returned fields. No wording is wasted.

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?

For a simple read-only summary tool with no output schema, the description covers the main data fields but leaves the days_back parameter completely unexplained. It is adequate but has a clear gap in how to control the retrieval window.

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?

The single parameter days_back has no description and 0% schema description coverage. The description does not mention this parameter at all, so its meaning and behavior—such as whether 7 means the last seven nights—must be inferred from the name and default alone.

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 clearly identifies the resource and returned content: nightly sleep summaries with duration, sleep stages, and quality score. It is distinct from siblings like get_hrv_summary or get_recovery_status, though it does not explicitly name an alternative or contrast with one.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as get_daily_metrics or get_recovery_status. The name and description imply it retrieves sleep data, but no usage conditions or exclusions are stated.

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.

Resources