Skip to main content
Glama

Sleep cycle calculator

hopi_sleep_calculator
Read-onlyIdempotent

Suggest sleep times using 90-minute cycles plus 15 minutes to fall asleep. Mode 'wake' takes a wake time and returns the best bedtimes (wake - 15 - cycles x 90 minutes). Mode 'bedtime' takes a bedtime and returns the best wake times (bedtime + 15 + cycles x 90 minutes). Both return options for 6, 5, 4 and 3 cycles. Times are 'HH:MM' 24-hour. Source: https://hopi.co.uk/sleep-calculator/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes'wake' to find bedtimes from a wake time, or 'bedtime' to find wake times from a bedtime
timeYesThe known time as 'HH:MM' (24-hour): the wake time for mode 'wake', or the bedtime for mode 'bedtime'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
timeYes
optionsYes
summaryYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "mode",
      +  "options",
      +  "source_url",
      +  "summary",
      +  "time"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context beyond annotations: it details the calculation formulas, the 15-minute fall-asleep assumption, the cycle counts (6, 5, 4, 3), and the 'HH:MM' 24-hour time format. This is useful for setting expectations about the tool's output and logic.

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?

The description is tightly structured, starting with the core purpose, then detailing mode-specific behavior and formulas, and ending with time format and source. Every sentence contributes necessary information with no filler, making it efficient for an agent to parse quickly.

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?

For a simple calculator with an output schema, the description fully covers the input modes, the formula used, the time format, and the cycle options. It leaves nothing essential unanswered; an agent has enough to invoke the tool correctly. The presence of an output schema means return-value details are handled elsewhere.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 described in the schema. The description adds value by explicitly linking each parameter to its purpose in the formulas ('wake - 15 - cycles x 90...' and 'bedtime + 15 + cycles x 90...'), clarifying how 'mode' and 'time' interact. This goes beyond just restating the schema.

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?

The description clearly states the tool's function with a specific verb ('Suggest sleep times') and resource, and immediately explains the two modes ('wake' and 'bedtime') with distinct formulas. This leaves no ambiguity about what the tool does or how it differs from the many sibling calculators, making it easily distinguishable.

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?

The description explicitly explains when to use each mode: 'wake' for finding bedtimes from a wake time, and 'bedtime' for finding wake times from a bedtime. While it doesn't mention alternatives (there are none among siblings), the mode-specific guidance is clear and directly actionable for an agent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources