Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_sleep_cycles

Calculate bedtimes aligned with 90-minute sleep cycles to reduce grogginess. Enter a target wake time and sleep latency to get 4-, 5-, and 6-cycle bedtime options.

Instructions

Sleep Cycle & Optimal Bedtime Calculator. Calculate exact bedtimes and wake times aligned with 90-minute ultradian sleep cycles (REM and Slow-Wave Deep Sleep) to eliminate grogginess. Discipline: HEALTH. Governing mathematical model / formula: Optimal Wake Time = Bedtime + (N × 90 Minutes) + 15 Minutes Fall-Asleep Latency.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of bedtime_5cycles (Recommended Bedtime (5 Cycles / 7.5 hrs)), bedtime_6cycles (Extended Bedtime (6 Cycles / 9.0 hrs)), bedtime_4cycles (Minimum Bedtime (4 Cycles / 6.0 hrs)), sleep_inertia (Sleep Inertia Risk) using wake_hour (Target Wake Hour (24-Hour Format) in :00), wake_min (Target Wake Minute in min), sleep_latency (Time to Fall Asleep in min). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Sleep Cycle & Optimal Bedtime Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "sleep-cycles"

    • category (string): "health"

    • name (string): "Sleep Cycle & Optimal Bedtime Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.bedtime_5cycles (Recommended Bedtime (5 Cycles / 7.5 hrs)): Formatted display string (e.g. '11:15 PM')

      • metrics.bedtime_6cycles (Extended Bedtime (6 Cycles / 9.0 hrs)): Formatted display string (e.g. '9:45 PM')

      • metrics.bedtime_4cycles (Minimum Bedtime (4 Cycles / 6.0 hrs)): Formatted display string (e.g. '12:45 AM')

      • metrics.sleep_inertia (Sleep Inertia Risk): Formatted display string (e.g. 'Zero (Waking at end of light sleep)')

    • execution_time_ms (number): Latency in milliseconds.

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

Input Schema

NameRequiredDescriptionDefault
wake_minNoTarget Wake Minute (min). 0, 15, 30, or 45. Default: 0. Min: 0. Max: 45.
wake_hourNoTarget Wake Hour (24-Hour Format) (:00). 7 = 7:00 AM. Default: 7. Min: 4. Max: 12.
sleep_latencyNoTime to Fall Asleep (min). Standard healthy latency is 10 to 20 minutes. Default: 15. Min: 5. Max: 45.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools