Skip to main content
Glama

IPv4 Subnet Calculator

subnet_calc
Read-onlyIdempotent

Compute IPv4 subnet details from CIDR notation entirely locally — no network call: network and broadcast addresses, usable host range, total usable hosts, subnet mask, and wildcard mask. /31 and /32 are handled per RFC 3021 (point-to-point / single host). Use this for IPv4 address planning. It does not query DNS or contact any host, so it is purely computational. Requires no API key and is NOT rate-limited (computed in-process). Returns the calculated fields as text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cidrYesIPv4 address with a CIDR prefix length 0-32 (e.g., '192.168.1.0/24'). IPv4 only; host bits may be any address inside the block.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
prefixYesCIDR prefix length
networkYesNetwork address
lastHostNoLast usable host
broadcastYesBroadcast address
firstHostNoFirst usable host
reportUrlYesHuman-facing interactive report on dechonet.com
subnetMaskYesDotted-decimal subnet mask
totalHostsYesUsable host count
wildcardMaskNoWildcard (inverse) mask

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already declare read-only, idempotent, and non-destructive behavior, and the description adds substantial behavioral context: no network call, no API key required, no rate limiting, in-process computation, RFC 3021 handling for /31 and /32, and text-format return. This goes well beyond the structured annotations.

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 cover behavior, outputs, special cases, constraints, and use case without redundancy. The most important distinction (local, no network call) is front-loaded.

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?

Given the output schema exists, the description does not need to detail return values, and it covers all essential operational context: local computation, authentication/rate-limit status, RFC handling, and intended usage. Nothing critical is missing for calling this tool 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?

The input schema has 100% coverage and already explains the cidr parameter with format and example. The description reinforces that the tool computes from CIDR notation but adds little new parameter-level meaning beyond what the schema provides, so the baseline of 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?

The description uses a specific verb ('Compute') with a clear resource ('IPv4 subnet details from CIDR notation') and enumerates the exact outputs. It also distinguishes itself from sibling network tools by emphasizing it is entirely local and purely computational.

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 gives an explicit use case ('Use this for IPv4 address planning') and states what the tool does not do ('It does not query DNS or contact any host'), which implies when not to use it. It doesn't reference a specific sibling alternative, but the local-computation framing is clear enough for an agent to route correctly.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool targets a clearly distinct diagnostic concern: DNS, SSL, HTTP headers, email auth, email headers, ASN, reverse DNS, WHOIS, ports, subnet math, and the caller IP. The overlapping tools (ssl_check vs http_security vs security_scan) are explicitly differentiated by scope and depth, with cross-references that remove ambiguity.

Naming Consistency5/5

All tool names use lowercase snake_case and follow a consistent noun_verb or noun_noun pattern built around the resource being inspected, such as dns_lookup, ssl_check, port_scan, and whois_lookup. There are no mixed conventions like camelCase or inconsistent verb styles.

Tool Count5/5

13 tools is a well-scoped size for a network/domain/security diagnostic server. Each tool covers a distinct diagnostic capability, and the count is substantial enough to feel complete without becoming bloated or redundant.

Completeness5/5

The tool surface provides broad read-only coverage of domain and network diagnostics: DNS, propagation, WHOIS, ASN, reverse DNS, SSL, HTTP security, email authentication, raw email headers, port scanning, subnet calculation, and an aggregate security scan. There are no obvious dead ends for the stated purpose of domain/network/security investigation.

Resources