Skip to main content
Glama
The Network Tools MCP Server

The Network Tools MCP Server

subnet_calculator

Calculate IPv4 CIDR subnet properties, including network address, netmask, wildcard mask, usable host range, broadcast address, and host count from a CIDR input.

Instructions

Calculate IPv4 CIDR subnet properties: network address, netmask, wildcard mask, usable host range, broadcast address, and host count.

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_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
cidrYesIPv4 CIDR notation (e.g. "192.168.1.0/24" or "10.0.0.0/16")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return content (the six computed properties), which is valuable since there is no output schema, and the calculation is inherently side-effect-free. However, it says nothing about error behavior for malformed CIDR strings, whether host bits set in the input are normalized, or whether IPv6 is rejected — meaningful gaps for a tool with zero annotation coverage.

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?

One sentence, front-loaded with the action and resource, followed by a compact enumeration of outputs. No filler, no restatement of the tool name, and every clause carries 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?

For a one-parameter deterministic computation with no output schema, the description covers the essential contract by listing exactly which properties come back. The remaining gap is edge-case behavior (invalid input, IPv6, host-bit normalization), which is modest for a tool of this complexity.

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 and schema description coverage is 100%, with the schema itself providing example values ('192.168.1.0/24', '10.0.0.0/16'). The description adds no syntax constraints beyond what the schema already states, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Calculate IPv4 CIDR subnet properties') and then enumerates exactly what is computed: network address, netmask, wildcard mask, usable host range, broadcast address, and host count. That is far more specific than the name alone. It stops short of distinguishing itself from adjacent siblings such as ip_intelligence, which an agent might plausibly consider for IP-related questions.

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

Usage Guidelines3/5

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

Usage is implied by the tool's nature — it is a pure calculator, and the phrase 'IPv4 CIDR subnet properties' makes the input shape obvious. There is no explicit statement of when to prefer this over ip_intelligence or dns_lookup, and no note that IPv6 is out of scope, but for a deterministic single-input calculator the implied guidance is largely sufficient.

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