Skip to main content
Glama

Fulcra Context MCP

get_sleep_cycles

Analyze sleep stages and summarize sleep cycles by identifying gaps in raw sleep data within a specified time range. Returns time-stamped sleep cycle data formatted as JSON for insights into sleep patterns.

Instructions

Return sleep cycles summarized from sleep stages.

Processes raw sleep data samples into sleep cycles by finding gaps in the sleep sample data within a specified time interval. Result timestamps will include time zones. Always translate timestamps to the user's local time zone when this is known. Args: start_time: The starting timestamp (inclusive), as an ISO 8601 string or datetime object. end_time: The ending timestamp (exclusive), as an ISO 8601 string or datetime object. cycle_gap: Optional. Minimum time interval separating distinct cycles (e.g., "PT2H" for 2 hours). Defaults to server-side default if not provided. stages: Optional. Sleep stages to include. Defaults to all stages if not provided. gap_stages: Optional. Sleep stages to consider as gaps in sleep cycles. Defaults to server-side default if not provided. clip_to_range: Optional. Whether to clip the data to the requested date range. Defaults to True. Returns: A JSON string representing a pandas DataFrame containing the sleep cycle data.

Input Schema

NameRequiredDescriptionDefault
clip_to_rangeNo
cycle_gapNo
end_timeYes
gap_stagesNo
stagesNo
start_timeYes

Input Schema (JSON Schema)

{ "properties": { "clip_to_range": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": true, "title": "Clip To Range" }, "cycle_gap": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Cycle Gap" }, "end_time": { "format": "date-time", "title": "End Time", "type": "string" }, "gap_stages": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Gap Stages" }, "stages": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Stages" }, "start_time": { "format": "date-time", "title": "Start Time", "type": "string" } }, "required": [ "start_time", "end_time" ], "type": "object" }
Install Server

Other Tools from Fulcra Context MCP

Related Tools

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/fulcradynamics/fulcra-context-mcp'

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