Skip to main content
Glama

util_subnet_plan

Read-only

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

NameRequiredDescriptionDefault
baseYes10.20.0.0/22
hostsYessales:200,engineering:100,ops:50,wan:2*2

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered. The description adds real context beyond that: the largest-first allocation algorithm, alignment/no-gap guarantee, the exact fields returned, fallback behavior when the base is too small, and an explicit price ($0.002 USDC via x402). It does not cover error handling or rate limits, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense, front-loaded paragraph: purpose first, then input grammar, then allocation semantics, then return shape, then price. Nearly every clause carries information an agent needs; the only questionable content is the growth/p2p31 mention that the schema does not support.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly enumerates the returned fields (network, mask, wildcard, hosts, broadcast, gateway, leftover blocks, suggested smaller base). For a 2-parameter read-only calculator that is close to complete; the unmentioned-but-described growth/p2p31 parameters and lack of error-case behavior keep it from a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the schema only offers bare examples ('10.20.0.0/22', 'sales:200,...'), and the description meaningfully expands the accepted hosts grammar (name:hosts, name:/prefix, bare counts, N*hosts, N*/prefix) plus growth and p2p31 behavior. That is substantial added meaning — though growth and p2p31 are described but absent from the schema, which could confuse an agent about valid arguments.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: 'IPv4 subnet planner (VLSM) — Carve an IPv4 block into right-sized subnets.' The VLSM/subnet-carving framing clearly separates it from siblings like util_cidr, util_cidr_merge, and util_ipv6 without needing to open their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description is rich on input syntax but never states when to choose this tool versus the CIDR/IPv6 siblings, nor any preconditions or exclusions. Usage is only implied by the 'carve a block into subnets' framing, which is adequate but not explicit routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources