Skip to main content
Glama

Subnet Calculator API - IPv4 and IPv6 CIDR, hosts, masks, splitting

subnet_calculator
Read-onlyIdempotent

For an address with prefix or mask (192.168.1.10/24, 10.0.0.5 255.255.255.0, 2001:db8::/32): network, broadcast, first and last host, host count, netmask, wildcard and binary; optional split into smaller subnets or the smallest subnet for N hosts. Several addresses per call, one per line. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/subnet-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "addresses": "192.168.1.10/24",
      "splitPrefix": "26"
    },
    "name": "subnet_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressesYesAddresses with prefix or mask, one per line
hostsNeededNoHosts needed in one subnet, e.g. 50 (optional)
splitPrefixNoSplit into subnets of this prefix, e.g. 26 (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description adds substantial context beyond them: processing happens server-side, files are deleted immediately, nothing is stored, and there is a free tier of 5 calls/day per IP plus paid auth via X-API-Key or x402 micropayment. These are real operational constraints an agent needs before calling.

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

Conciseness4/5

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

Front-loaded with input formats and outputs, then optional behaviors, then operational/pricing details. It is dense but every clause carries information; only the pricing URL block is slightly verbose, yet it is needed for authenticated use.

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

Completeness5/5

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

There is no output schema, and the description compensates by enumerating the returned fields and describing the splitting behavior. Combined with privacy, rate-limit and auth disclosures, an agent has everything needed to call it correctly.

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%, so the baseline is 3, but the description earns extra by explaining accepted input syntaxes (CIDR, space-separated mask, IPv6) and multiple addresses one per line, and by clarifying the splitPrefix vs hostsNeeded use cases. It adds meaning beyond the terse schema property descriptions.

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?

States a specific verb+resource (compute network/broadcast/host data from CIDR or mask) with concrete input examples for IPv4 CIDR, IPv4 dotted mask and IPv6. It enumerates the exact outputs, so an agent knows precisely what the tool produces.

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

Usage Guidelines4/5

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

The description explains that splitting is optional and distinguishes the two modes: a target prefix ('split into smaller subnets') versus a host count ('smallest subnet for N hosts'), which guides selection between the two optional parameters. It does not name any alternative tools, but the calculator siblings are clearly distinct functions, so no routing confusion arises.

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