util_subnet_plan
IPv4 subnet planner (VLSM) — Carve an IPv4 block into right-sized subnets. base= CIDR plus hosts= as a comma list of name:hosts (sales:200), name:/prefix (dmz:/28), bare counts (120,60) or Nhosts / N/prefix (wan:4*/30). Optional growth= percent headroom per subnet, p2p31=true to size 2-host links as /31. Allocates largest-first so every subnet is aligned with no gaps, and returns network, mask, wildcard, first/last host, broadcast, usable vs requested hosts, suggested gateway, the leftover free blocks as CIDRs, and the smallest base that fits when it does not. Price: $0.002 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base": "<base>",
"hosts": "<hosts>"
},
"name": "util_subnet_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | 10.20.0.0/22 | |
| hosts | Yes | sales:200,engineering:100,ops:50,wan:2*2 |