ISO date clamp

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

Clamp a YYYY-MM-DD calendar date into an inclusive [min, max] range.

Use when you need to: iso date clamp · bound date to range · restrict date to min max.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "date": "2026-01-01",
  "min": "2026-02-01",
  "max": "2026-03-01"
}

Response:

{
  "result": {
    "date": "2026-02-01"
  }
}

How to call it

MCP

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

{
  "id": "iso-date-clamp",
  "version": "1.0.0",
  "input": {
    "date": "2026-01-01",
    "min": "2026-02-01",
    "max": "2026-03-01"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/iso-date-clamp/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"date":"2026-01-01","min":"2026-02-01","max":"2026-03-01"}'

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

CLI

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

Get the client at /clients/cli/.