ISO date range union

iso-date-range-union · version 1.0.0 · Dates & times (UTC, ISO 8601) · free, no key needed

Merge overlapping or day-adjacent inclusive [start, end] date ranges into the fewest equivalent ranges.

Use when you need to: iso date range union · merge date ranges · combine overlapping date periods.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "ranges": [
    {
      "start": "2026-01-01",
      "end": "2026-01-05"
    },
    {
      "start": "2026-01-06",
      "end": "2026-01-10"
    },
    {
      "start": "2026-02-01",
      "end": "2026-02-05"
    }
  ]
}

Response:

{
  "result": {
    "union": [
      {
        "start": "2026-01-01",
        "end": "2026-01-10"
      },
      {
        "start": "2026-02-01",
        "end": "2026-02-05"
      }
    ]
  }
}

How to call it

MCP

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

{
  "id": "iso-date-range-union",
  "version": "1.0.0",
  "input": {
    "ranges": [
      {
        "start": "2026-01-01",
        "end": "2026-01-05"
      },
      {
        "start": "2026-01-06",
        "end": "2026-01-10"
      },
      {
        "start": "2026-02-01",
        "end": "2026-02-05"
      }
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/iso-date-range-union/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"ranges":[{"start":"2026-01-01","end":"2026-01-05"},{"start":"2026-01-06","end":"2026-01-10"},{"start":"2026-02-01","end":"2026-02-05"}]}'

The machine-readable contract is at /v1/tools/iso-date-range-union/versions/1.0.0.

CLI

node cli.mjs run iso-date-range-union 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.