CIDR and IP planner
Inspect addresses, check membership and overlaps, or allocate subnets, with a SHA-256 output digest.
$0.02
One call: the result comes back in the paid request.
Sample product output
{
"allocated": [
"192.0.2.4/30",
"192.0.2.8/29"
],
"cidr": "192.0.2.0/28",
"limits": [
"Max 200 items per CIDR or target list and 64 requested prefixes. CIDRs must be aligned.",
"Counts are decimal strings. IPv4 /31 and IPv6 /127 include both addresses as usable.",
"Overlap indices are zero-based. Carving places largest blocks first at the lowest aligned address.",
"Address arithmetic only, with no DNS or network checks."
],
"operation": "carve_subnets",
"output_sha256": "1852ff0633a51c704072653a42adb5d5588eafca7934cfbb76c71d2b873e61a5",
"remaining": []
}
Input fields
{
"example": {
"cidr": "192.0.2.0/28",
"existing_cidrs": [
"192.0.2.0/30"
],
"operation": "carve_subnets",
"requested_prefixes": [
30,
29
]
},
"properties": {
"cidr": {
"description": "Aligned parent CIDR.",
"example": "192.0.2.0/28",
"maxLength": 64,
"minLength": 1,
"type": "string",
"x-preserve-whitespace": true
},
"cidrs": {
"description": "CIDR rules for membership or overlap checks.",
"example": [
"192.0.2.0/28"
],
"items": {
"description": "IP address or network text.",
"example": "192.0.2.0/28",
"maxLength": 64,
"minLength": 1,
"type": "string",
"x-preserve-whitespace": true
},
"maxItems": 200,
"minItems": 1,
"type": "array"
},
"existing_cidrs": {
"description": "Existing allocations in the parent CIDR.",
"example": [
"192.0.2.0/30"
],
"items": {
"description": "IP address or network text.",
"example": "192.0.2.0/30",
"maxLength": 64,
"minLength": 1,
"type": "string",
"x-preserve-whitespace": true
},
"maxItems": 200,
"minItems": 0,
"type": "array"
},
"operation": {
"description": "CIDR planning operation.",
"enum": [
"inspect",
"check_membership",
"find_overlaps",
"carve_subnets"
],
"example": "inspect",
"maxLength": 16,
"minLength": 1,
"type": "string",
"x-preserve-whitespace": true
},
"requested_prefixes": {
"description": "Requested prefix lengths in result order.",
"example": [
30,
29
],
"items": {
"example": 30,
"maximum": 128,
"minimum": 0,
"type": "integer"
},
"maxItems": 64,
"minItems": 1,
"type": "array"
},
"targets": {
"description": "IPs or aligned CIDRs to match against the rules.",
"example": [
"192.0.2.1"
],
"items": {
"description": "IP address or network text.",
"example": "192.0.2.1",
"maxLength": 64,
"minLength": 1,
"type": "string",
"x-preserve-whitespace": true
},
"maxItems": 200,
"minItems": 1,
"type": "array"
}
},
"required": [
"operation"
],
"type": "object"
}
One-step x402 buy
POST https://redwoodagentsupply.com/api/v1/buy/utility-cidr-ip-plan
Content-Type: application/json
{
"inputs": {
"cidr": "192.0.2.0/28",
"existing_cidrs": [
"192.0.2.0/30"
],
"operation": "carve_subnets",
"requested_prefixes": [
30,
29
]
}
}Paid orders settle before background work starts. A failed job is run again once, free and automatically. If it fails twice, ask the operator to run it again using the order ID. Keep your order credential private. All sales are final.
Assistant instructions
Read the catalog and request a quote using the example below. Create an order with that quote and a unique Idempotency-Key. Keep the order credential private. Send it as Bearer authorization. Request a payment attempt, then fetch the result after settlement.
Quote request example
POST /api/v1/quotes
Content-Type: application/json
{
"slug": "utility-cidr-ip-plan",
"inputs": {
"cidr": "192.0.2.0/28",
"existing_cidrs": [
"192.0.2.0/30"
],
"operation": "carve_subnets",
"requested_prefixes": [
30,
29
]
}
}