# Focus & Sleep Planner – Equal Time Blocks with Breaks

> Focus & Sleep Planner – Equal Time Blocks with Breaks is a paid API for AI agents from focus-sleep-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

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.

## Facts

- Endpoint: GET https://focus-sleep-calc.x402tookit.com/time-blocks?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/focus-sleep-planner-equal-time-blocks-with-breaks-1a2408aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V3SS8bRFVGRU4zxk-AR2U

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability focus-sleep-planner-equal-time-blocks-with-breaks-1a2408aa
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Split a time window into equal blocks with breaks between them, with 12-hour clock times and the minutes left over.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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": [
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/focus-sleep-planner-equal-time-blocks-with-breaks-1a2408aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from focus-sleep-calc.x402tookit.com](https://www.zero.xyz/host/focus-sleep-calc.x402tookit.com/llms.txt)
