Skip to main content
Glama

Dotquad

Subnet calculator

subnet
Read-only

Exact subnet math for an IPv4 or IPv6 block: network and last address, netmask, wildcard and broadcast (IPv4), usable host range and count, and what kind of range it is (private, documentation, public…). Set split_prefix to list the smaller subnets the block divides into. Arithmetic only: it reaches nothing outside Dotquad.

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": {
      "cidr": "<cidr>"
    },
    "name": "subnet"
  }
}

Input Schema

NameRequiredDescriptionDefault
cidrYesA block such as 10.0.0.0/24 or 2001:db8::/48, an address and netmask such as 192.168.1.10 255.255.255.0, or a bare address
split_prefixNoSplit the block into subnets of this prefix length (lists the first 256)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false; the description reinforces that with 'reaches nothing outside Dotquad.' It also discloses a behavior annotations cannot convey: split listing is truncated to the first 256 subnets, which is essential to interpreting results correctly. It stops short of describing the response shape or invalid-input handling.

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?

Three dense sentences with no filler: the output inventory leads, the optional-parameter behavior follows, and the scope disclaimer closes. Every clause carries discrete information.

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 usefully enumerates what is returned and flags the 256-subnet cap, which is enough for an agent to call it correctly. Minor gaps remain: output structure/field names and behavior on malformed input are not stated.

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

Parameters3/5

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

Schema coverage is 100%, so the accepted cidr formats and split_prefix meaning are already documented in the schema. The description adds only marginal context, such as broadcast/wildcard being IPv4-only and split_prefix enabling subnet enumeration, so baseline 3 applies.

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?

Names the exact resource (IPv4/IPv6 block) and enumerates the concrete outputs: network and last address, netmask, wildcard, broadcast, usable host range and count, range classification. The closing line 'Arithmetic only: it reaches nothing outside Dotquad' separates it cleanly from network-facing siblings like lookup_ip or traceroute.

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?

Gives a clear triggering condition for the optional parameter ('Set split_prefix to list the smaller subnets the block divides into') and frames the tool's scope as pure arithmetic, implying it is the wrong choice when live DNS/whois data is needed. It does not explicitly name an alternative sibling, so it stops short of a 5.

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