Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

network_subnet_calculator

Read-onlyIdempotent

Compute IPv4 subnet details from CIDR block or IP address with mask. Returns network and broadcast addresses, host range, and other subnet info.

Instructions

IPv4 Subnet Calculator (CIDR / IP+Mask). Compute IPv4 subnet details from a CIDR block (e.g. 192.168.1.0/24) or an IP address plus a dotted-decimal subnet mask. Returns the network and broadcast addresses, the usable host range (first/last host), total and usable host counts, the subnet and wildcard masks, the binary mask, network class, host/network bit split, private-range flag, and a default-class subnet count. Use network_cidr_calculator to convert between CIDR and notation formats, or network_ip_range_calculator to enumerate every address in a block. Pure offline IPv4 math: read-only, non-destructive, contacts no DNS or network service, and is rate-limited (30 requests/minute for anonymous callers).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputFormatNoInput mode. cidr reads cidrInput; mask reads ipInput plus subnetMask. Defaults to cidr.cidr
cidrInputNoCIDR block in IP/prefix form, e.g. 192.168.1.0/24. Prefix must be 0-32 and the IP a valid dotted-decimal IPv4 address. Used when inputFormat is cidr.
inputNoAlias for cidrInput accepted for backward compatibility; used only when cidrInput is absent.
ipInputNoDotted-decimal IPv4 address (each octet 0-255), e.g. 10.0.0.5. Used when inputFormat is mask.
subnetMaskNoDotted-decimal subnet mask (contiguous, e.g. 255.255.255.0) paired with ipInput when inputFormat is mask. Converted internally to a CIDR prefix.
worker_idNoOptional registered healthy worker peer ID. Omit to use the default master-server behavior.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoWhether the request was processed without error.
resultNoComputed subnet details. Optional fields are omitted when valid is false.
errorNoError message when success is false.
Behavior5/5

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

Annotations already mark the tool as readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=false. The description adds crucial context: 'Pure offline IPv4 math: read-only, non-destructive, contacts no DNS or network service, and is rate-limited (30 requests/minute for anonymous callers).' This enhances transparency beyond annotations. No contradiction.

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?

The description is a single paragraph that efficiently conveys the purpose, use cases, behavior, and limitations. It is well-structured, front-loading the core purpose and output list, then providing usage guidance and behavioral notes. No unnecessary words.

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 tool has 6 parameters (0 required), 100% schema coverage, and an output schema, the description covers all essential aspects: purpose, input modes, output fields, behavioral guarantees (offline, read-only, rate-limited), and differentiation from siblings. It does not need to explain return values since an output schema exists.

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 description coverage is 100%, so baseline is 3. The description adds context about when each parameter is used (e.g., 'Used when inputFormat is cidr') and explains the purpose of the input modes. While the schema already documents each parameter, the description clarifies the conditional relationships, justifying a slightly higher score.

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 clearly states it is an IPv4 Subnet Calculator, specifies the two input modes (CIDR or IP+Mask), and lists the computed outputs. It also distinguishes itself from sibling tools like network_cidr_calculator and network_ip_range_calculator by stating their different purposes.

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

Usage Guidelines5/5

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

The description explicitly tells when to use this tool (compute subnet details) and when not to (for conversion or enumeration, directing to siblings). It also mentions the tool is pure offline math and read-only, setting appropriate expectations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jambozx/onlinecybertools-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server