Skip to main content
Glama
burakdirin

apple-health-export-mcp

get_sleep

Read-onlyIdempotent

Retrieve per-night sleep stage durations in minutes, including REM, deep, core, awake, and in-bed time, attributed to the wake-up day. Filter by date range.

Instructions

Per-night sleep stage durations (minutes), attributed to the wake-up day.

Returns [{night, asleep_min, rem_min, deep_min, core_min, awake_min, in_bed_min}]. Older nights may report only in_bed_min (legacy devices lack stage detail).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYesLocal calendar date, ISO 'YYYY-MM-DD'.
startYesLocal calendar date, ISO 'YYYY-MM-DD'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations provide readOnlyHint and idempotentHint. Description adds that older nights may report only in_bed_min due to legacy devices, which is useful behavioral context beyond 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?

Two sentences, no fluff. First sentence states purpose and return format; second addresses legacy data nuance. Efficient and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given annotations, schema, and output schema existence, description provides sufficient context. It covers return format and legacy behavior, completing the picture for agent decision.

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 coverage is 100%, so baseline applies. Description does not add parameter-specific meaning beyond schema, which already documents start and end dates as ISO strings.

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?

Description specifies 'Per-night sleep stage durations (minutes), attributed to the wake-up day.' It clearly identifies the resource (sleep stages) and the action (get durations). No sibling tool relates to sleep, so differentiation is inherent.

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?

Implies usage for retrieving sleep stage data per night with wake-up day attribution. No explicit when-not or alternatives, but sibling tools are unrelated, so context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/burakdirin/apple-health-export-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server