Skip to main content
Glama
royreznik

Oura Ring MCP Server

Get sleep period

get_sleep_period
Read-onlyIdempotent

Retrieve full details for one sleep period by its sleep_id: hypnogram, heart-rate and HRV curves, and readiness contributors. Get the id from list_sleep_periods or get_daily_overview first.

Instructions

Get one sleep period in full detail by its sleep_id: the same summary as list_sleep_periods plus a hypnogram (deep/light/REM/awake segments at 5-minute resolution, in local time), heart-rate and HRV curves through the night (downsampled to at most 120 points, with avg/min/max), and the readiness contributors it produced. Use it to explain one specific night; get the id from list_sleep_periods or get_daily_overview first. An unknown id returns a 404 error; raw: true returns Oura's original object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNoReturn Oura's raw API objects instead of compact summaries with friendly units.
sleep_idYesSleep period id (from list_sleep_periods or get_daily_overview).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but the description adds real behavioral context beyond them: the 404 on unknown ids, the 5-minute hypnogram resolution in local time, the downsampling cap of 120 points for HR/HRV, and the effect of raw:true.

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?

Front-loaded with the action and payload, then usage, then edge cases. Every sentence carries information (return content, id source, error behavior, raw flag) with no filler.

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?

With no output schema, the description fully compensates by enumerating what comes back and at what granularity. Combined with the error and raw behaviors, an agent has everything needed to call and interpret this tool.

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 both parameters are already documented. The description restates the raw flag's behavior ('raw: true returns Oura's original object') and the id's provenance, adding negligible meaning beyond the schema. Baseline 3 applies.

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 ('Get one sleep period in full detail by its sleep_id') and immediately distinguishes itself from list_sleep_periods by describing the extra payload (hypnogram, HR/HRV curves, readiness contributors). An agent can tell this apart from its siblings without opening a schema.

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

Usage Guidelines5/5

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

Explicitly states when to use it ('Use it to explain one specific night') and where the required id comes from ('get the id from list_sleep_periods or get_daily_overview first'). The alternative list tool is named, so routing is unambiguous.

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