{"uid":"cap_VGwsX8izgFFMlCfFzG1mN","slug":"focus-sleep-planner-sleep-cycle-calculator-22b6073e","name":"Focus & Sleep Planner – Sleep Cycle Calculator","description":"Bedtimes for a wake-up time, or wake times for a bedtime, using 90 minute cycles plus a fall-asleep allowance. Planning only.","url":"https://focus-sleep-calc.x402tookit.com/sleep-cycles?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["know","time"],"properties":{"know":{"type":"string","description":"wake = you know the wake-up time and want bedtimes; bed = you know your bedtime and want wake times"},"time":{"type":"string","description":"The known time, 12-hour like 7:00 AM or 24-hour like 07:00"},"maxCycles":{"type":"number","description":"Most cycles to list, 1 to 10 (default 6)"},"minCycles":{"type":"number","description":"Fewest cycles to list, 1 to 8 (default 3)"},"cycleMinutes":{"type":"number","description":"Length of one sleep cycle in minutes, 60 to 120 (default 90)"},"fallAsleepMinutes":{"type":"number","description":"Minutes allowed to fall asleep, 0 to 120 (default 15)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"know":{"type":["null","string"]},"source":{"type":["null","string"]},"options":{"type":["array","null"],"items":{"type":"object","properties":{"cycles":{"type":["null","number"]},"bedtime":{"type":["null","string"]},"hoursInBed":{"type":["null","number"]},"hoursOfSleep":{"type":["null","number"]},"bedtimeDayOffset":{"type":["null","number"]}}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"anchorTime":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"cycleMinutes":{"type":["null","number"]},"fallAsleepMinutes":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aO5bGbIwc8kYO0nhX-q0m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a list of optimal bedtimes or wake times based on 90-minute sleep cycles and a configurable fall-asleep allowance, given either a known wake-up time or a known bedtime.","exampleAgentPrompt":"I need to wake up at 6:30 AM tomorrow — can you give me a list of bedtimes I should aim for tonight based on 90-minute sleep cycles, assuming it takes me about 15 minutes to fall asleep?","exampleUseCases":[{"title":"Early morning meeting sleep planner","prompt":"I have a work call at 7:00 AM and need to know what time I should go to bed tonight to wake up feeling rested — show me bedtime options using 90-minute sleep cycles."},{"title":"Custom bedtime with later wake window","prompt":"If I go to bed at 11:30 PM, what are the best times for me to wake up? Use 90-minute cycles, assume 20 minutes to fall asleep, and show me at least 3 and up to 5 options."},{"title":"Shift worker sleep optimization","prompt":"I work a night shift and usually get into bed around 8:00 AM — what wake-up times should I target based on sleep cycles, using a fall-asleep time of 10 minutes?"}],"resultDescription":"An ordered list of sleep options, each with the target bedtime or wake time, number of sleep cycles, total hours in bed, and hours of actual sleep. Also includes a summary, a verdict on the best option, a disclaimer about planning-only use, and metadata like cycle length and fall-asleep allowance used.","failureModes":["Missing required 'know' parameter (wake or bed) returns an error","Invalid time format not matching 12-hour or 24-hour patterns may cause a parse error","minCycles greater than maxCycles produces no valid options","cycleMinutes out of range (below 60 or above 120) rejected","fallAsleepMinutes out of range (above 120) rejected"],"whenToPreferThis":"Use this endpoint when you need to calculate multiple optimal bedtimes or wake times for a given anchor time using sleep cycle logic. Prefer it over generic calendar or alarm tools when the user specifically wants cycle-based sleep planning with configurable parameters like cycle duration and fall-asleep allowance. It is planning-only and does not set alarms or interact with device clocks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:08:12.046Z","isFirstParty":false,"canonicalSlug":"focus-sleep-planner-sleep-cycle-calculator-22b6073e"}