Skip to main content
Glama

get_sleep

Read-onlyIdempotent

Retrieve read-only sleep sessions with duration, sleep stages, score, and resting heart rate for a specified date range.

Instructions

Read-only. Sleep sessions with duration, stages, score and resting heart rate.

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

Input Schema

NameRequiredDescriptionDefault
sinceNo
untilNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the leading 'Read-only.' sentence merely restates structured data and earns no credit. The description does add behavioral value by disclosing the returned data shape (duration, stages, score, resting heart rate), which annotations cannot express, but says nothing about pagination, volume of sessions returned, or how missing data is handled.

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?

A single tight sentence with the return payload front-loaded and no filler. The leading 'Read-only.' is wasted space given the annotation, costing a point but not readability.

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?

With no output schema, the description does well to enumerate the main returned fields. However, for a two-parameter time-ranged query tool with completely undocumented parameters, it leaves the agent without enough information to call it correctly, which is the main completeness gap.

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?

Both parameters (since, until) have 0% schema description coverage, so the description carries the full burden — yet it never mentions them, their expected date format, or their inclusivity. An agent cannot tell from either source how to scope the query, and with 0 required params the risk of an accidental unbounded fetch is unaddressed.

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?

Names a specific resource (sleep sessions) and enumerates the payload it returns — duration, stages, score, resting heart rate — which lets an agent distinguish it from adjacent tools like get_hrv or get_respiratory_rate without opening a schema. It does not explicitly differentiate from the close sibling get_sleep_breathing, so it stops short of a 5.

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 when-to-use guidance at all: no statement of which questions this tool answers versus get_daily_summary, get_sleep_breathing, or get_trend. The agent must infer the scope from the field list alone.

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