Skip to main content
Glama

middle.network: DNS, Email Auth (SPF/DKIM/DMARC/MTA-STS), WHOIS/RDAP, ASN & Network Tools

Subnet / CIDR calculator

subnet
Read-onlyIdempotent

Calculate IPv4 or IPv6 CIDR subnet details offline, returning network, broadcast, usable host range, netmask/wildcard, and host count. Use for CIDR planning; use ip_convert to convert a single IP between decimal, hex, binary, and IPv6 formats. Cost: 1 unit via middle.network.

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

Input Schema

NameRequiredDescriptionDefault
textYesA CIDR block or an address and mask.

Output Schema

NameRequiredDescriptionDefault
dataNoTool-specific structured payload (records, timings, parsed fields, or scores).
toolNoCatalog tool identifier.
shareNoOptional shareable report link metadata.
statusNoOverall diagnostic verdict.
targetNoNormalised domain, IP, or input target.
limitedNoOptional list of upstream data sources that were rate-limited or unavailable.
summaryNoPlain-English and technical one-line summaries.
findingsNoOrdered diagnostic findings with severity and actionable fixes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive behavior and a closed-world (no network) profile, so the bar is lower. The description still adds real value by stating the calculation happens offline, listing what the response contains, and disclosing the cost of 1 unit via middle.network, which nothing in the structured fields conveys.

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?

Two sentences with no padding: capability and return values come first, then the sibling routing, then the cost. Each clause carries distinct information and nothing is repeated from the title.

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?

For a low-complexity, single-parameter read-only tool with full schema coverage and an output schema, the description covers purpose, output shape, alternative routing, offline behavior, and cost. An agent has everything needed to select and call it correctly.

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?

There is a single parameter with 100% schema description coverage plus illustrative examples covering both a v4 and a v6 block. The description's mention of 'IPv4 or IPv6' and 'an address and mask' form aligns with, but does not materially exceed, what the schema already documents, so this sits at the baseline.

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?

The description names a specific verb and resource (calculate CIDR subnet details for IPv4 or IPv6) and enumerates the concrete outputs: network, broadcast, usable host range, netmask/wildcard, and host count. It explicitly distinguishes itself from the sibling ip_convert, which handles single-address format conversion rather than block math.

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?

It gives clear context (CIDR planning) and names the correct alternative with the condition that selects it (ip_convert for converting a single IP between decimal, hex, binary, and IPv6). It does not address bulk scenarios where bulk_ip might be preferable, so the routing guidance is solid but not exhaustive.

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.