IPv4 prefix set union

ipv4-prefix-set-union · version 1.0.0 · URLs & IP addresses · free, no key needed

Union two IPv4 prefix sets into one sorted minimal list of disjoint CIDRs.

Use when you need to: union of two ipv4 prefix sets · merge two ipv4 prefix lists · combine ipv4 cidr sets into one cover.

Decide before calling

Read the versioned contract and the supported scope below. Reuse ipv4-prefix-set-union@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 ipv4-prefix-set-union@1.0.0 for union of two ipv4 prefix sets. 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:

{
  "left": [
    "10.0.0.0/25"
  ],
  "right": [
    "10.0.0.128/25"
  ]
}

Response:

{
  "result": {
    "prefixes": [
      "10.0.0.0/24"
    ],
    "count": 1
  }
}

How to call it

MCP

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

{
  "id": "ipv4-prefix-set-union",
  "version": "1.0.0",
  "input": {
    "left": [
      "10.0.0.0/25"
    ],
    "right": [
      "10.0.0.128/25"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/ipv4-prefix-set-union/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"left":["10.0.0.0/25"],"right":["10.0.0.128/25"]}'

The machine-readable contract is at /v1/tools/ipv4-prefix-set-union/versions/1.0.0.

CLI

node cli.mjs run ipv4-prefix-set-union 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.