Appointment windows build

appointment-windows-build · version 1.0.0 · Dates & times (UTC, ISO 8601) · free, no key needed

Build deterministic appointment windows from pinned time-zone facts and caller-supplied booking rules.

Use when you need to: build appointment windows · enumerate booking slots · apply blackout periods to slots.

Decide before calling

Read the versioned contract and the supported scope below. Reuse appointment-windows-build@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use appointment-windows-build@1.0.0 for build appointment windows. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "caller_rule_version": "policy-v7",
  "zone_id": "UTC",
  "now": "2026-06-01T00:00:00Z",
  "notice_seconds": 0,
  "horizon_seconds": 31536000,
  "opening_hours": [
    {
      "weekday": 1,
      "start": "09:00",
      "end": "12:00"
    }
  ],
  "blackouts": [],
  "range_start_local": "2026-06-01",
  "range_end_local": "2026-06-02",
  "duration_seconds": 3600,
  "slot_step_seconds": 3600
}

Response:

{
  "result": {
    "standard_version": "RFC3339+ISO8601-1:2019",
    "data_version": "iana-tzdb-2025b-compact",
    "caller_rule_version": "policy-v7",
    "zone_id": "UTC",
    "windows": [
      {
        "start": "2026-06-01T09:00:00Z",
        "end": "2026-06-01T10:00:00Z",
        "start_epoch_seconds": 1780304400,
        "end_epoch_seconds": 1780308000
      },
      {
        "start": "2026-06-01T10:00:00Z",
        "end": "2026-06-01T11:00:00Z",
        "start_epoch_seconds": 1780308000,
        "end_epoch_seconds": 1780311600
      },
      {
        "start": "2026-06-01T11:00:00Z",
        "end": "2026-06-01T12:00:00Z",
        "start_epoch_seconds": 1780311600,
        "end_epoch_seconds": 1780315200
      }
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "appointment-windows-build",
  "version": "1.0.0",
  "input": {
    "caller_rule_version": "policy-v7",
    "zone_id": "UTC",
    "now": "2026-06-01T00:00:00Z",
    "notice_seconds": 0,
    "horizon_seconds": 31536000,
    "opening_hours": [
      {
        "weekday": 1,
        "start": "09:00",
        "end": "12:00"
      }
    ],
    "blackouts": [],
    "range_start_local": "2026-06-01",
    "range_end_local": "2026-06-02",
    "duration_seconds": 3600,
    "slot_step_seconds": 3600
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/appointment-windows-build/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"caller_rule_version":"policy-v7","zone_id":"UTC","now":"2026-06-01T00:00:00Z","notice_seconds":0,"horizon_seconds":31536000,"opening_hours":[{"weekday":1,"start":"09:00","end":"12:00"}],"blackouts":[],"range_start_local":"2026-06-01","range_end_local":"2026-06-02","duration_seconds":3600,"slot_step_seconds":3600}'

The machine-readable contract is at /v1/tools/appointment-windows-build/versions/1.0.0.

CLI

node cli.mjs run appointment-windows-build 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.