Skip to main content
Glama

FernTool Network Tools

subnet_mask_convert

Convert between a subnet mask, CIDR prefix, wildcard mask and device count. Input a dotted mask (255.255.255.192 -> /26), a hex netmask from macOS ifconfig (0xffffff00 -> /24), a wildcard (0.0.0.255 -> /24), a prefix (/22) or how many devices you need ("50 hosts" -> smallest prefix that fits). Returns prefix, mask, wildcard, total and usable addresses, binary mask.

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": {
      "mask": "<mask>"
    },
    "name": "subnet_mask_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
maskYese.g. 255.255.255.192, /22, 0.0.0.255 or 50 hosts

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does well: it discloses all accepted input formats and enumerates the returned values including prefix, mask, wildcard, total and usable addresses, and binary mask. It does not discuss invalid-input handling or error behavior, which are minor gaps for a deterministic conversion utility.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded with the core conversion purpose, followed by accepted input forms and then return values. Every sentence earns its place, though the input-forms clause is somewhat packed and could be split for readability.

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 single-parameter conversion tool with no output schema and no annotations, the description fully explains the input formats and output fields. It is nearly complete, with only minor omissions around invalid input handling or edge cases like /31 and /32 prefixes.

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 schema already documents the single 'mask' parameter with the same examples. The description repeats those examples but adds no meaning beyond the schema, making the baseline 3 appropriate.

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 states a specific verb and resource: converting between subnet mask, CIDR prefix, wildcard mask, and device count, with concrete examples for each form. It is clear what the tool does, but it does not explicitly differentiate itself from siblings like subnet_calc or subnet_how_many_fit.

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?

Usage is clearly implied through accepted input forms and examples such as '255.255.255.192 -> /26' and '"50 hosts" -> smallest prefix that fits'. There is no explicit when-not-to-use guidance or mention of alternative sibling tools, which keeps it below 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