{"uid":"cap_V3SS8bRFVGRU4zxk-AR2U","slug":"focus-sleep-planner-equal-time-blocks-with-breaks-1a2408aa","name":"Focus & Sleep Planner – Equal Time Blocks with Breaks","description":"Split a time window into equal blocks with breaks between them, with 12-hour clock times and the minutes left over.","url":"https://focus-sleep-calc.x402tookit.com/time-blocks?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":["windowStart","windowEnd","blockMinutes"],"properties":{"windowEnd":{"type":"string","description":"Window end, like 12:00 PM (an end at or before the start means the next day)"},"windowStart":{"type":"string","description":"Window start, like 9:00 AM"},"blockMinutes":{"type":"number","description":"Length of each block, 5 to 480"},"breakMinutes":{"type":"number","description":"Break between blocks, 0 to 120 (default 10)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"blocks":{"type":["array","null"],"items":{"type":"object","properties":{"end":{"type":["null","string"]},"block":{"type":["null","number"]},"start":{"type":["null","string"]},"endDayOffset":{"type":["null","number"]},"startDayOffset":{"type":["null","number"]}}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"blockCount":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"blockMinutes":{"type":["null","number"]},"breakMinutes":{"type":["null","number"]},"windowMinutes":{"type":["null","number"]},"leftoverMinutes":{"type":["null","number"]},"breakMinutesTotal":{"type":["null","number"]},"focusMinutesTotal":{"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_71WIdfWaVmbPzsIqucAtU","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":"Splits a time window into equal-length focus blocks separated by breaks, returning each block's start/end times (12-hour clock), block count, leftover minutes, and totals.","exampleAgentPrompt":"Split my work window from 9:00 AM to 5:00 PM into 50-minute focus blocks with 10-minute breaks, and tell me how many blocks fit and how many minutes are left over.","exampleUseCases":[{"title":"Deep work session planner","prompt":"I'm working from 8:00 AM to 12:00 PM — break it into 90-minute focus blocks with 15-minute breaks and tell me how many I get and if there are any leftover minutes."},{"title":"Student study block scheduler","prompt":"I need to study from 2:00 PM to 6:00 PM before my exam. Split that into 45-minute blocks with 10-minute breaks and show me the start and end time of each block."},{"title":"Evening wind-down routine planner","prompt":"I have from 7:00 PM to 10:00 PM free — divide it into 30-minute blocks with 5-minute breaks between each and tell me the schedule in 12-hour clock times."}],"resultDescription":"Returns a list of numbered blocks each with a 12-hour start and end time (and day offsets if the window crosses midnight), plus summary stats: total block count, total focus minutes, total break minutes, total window minutes, and leftover minutes that didn't fill a complete block. Also includes a human-readable summary and any disclaimer or degraded-service flags.","failureModes":["Missing required query params (windowStart, windowEnd, blockMinutes) returns an error","blockMinutes outside 5–480 range may be rejected","breakMinutes outside 0–120 range may be rejected","Malformed time strings (e.g. missing AM/PM) may cause a parse error","A window too short for even one block returns blockCount 0 with all leftover minutes","Payment failure (x402) results in a 402 response before computation"],"whenToPreferThis":"Choose this endpoint when you need to divide any contiguous time window into a fixed-size block schedule with uniform breaks — particularly when you want the exact 12-hour clock times for each block, the leftover minutes, and aggregate focus/break totals. Prefer it over a Pomodoro endpoint when you don't need the classic Pomodoro structure (short + long breaks) and just want equal blocks of any chosen length.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:17.505Z","isFirstParty":false,"canonicalSlug":"focus-sleep-planner-equal-time-blocks-with-breaks-1a2408aa"}