Skip to main content
Glama

Subnet calculator

calculate_subnet
Read-only

Compute the network address, broadcast or last address, and address counts for an IPv4 or IPv6 CIDR block.

Input Schema

NameRequiredDescriptionDefault
cidrYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value by naming the exact results computed (network address, broadcast/last address, address counts), which matters because there is no output schema. It does not state error behavior for malformed CIDR or whether host bits are accepted.

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?

A single front-loaded sentence with zero padding; the verb and the returned quantities come first and the input domain is stated immediately after.

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, read-only computation tool with no output schema, naming the computed quantities largely covers what an agent needs before calling. The remaining gaps — accepted CIDR format and failure behavior on invalid input — are minor for a purely deterministic calculator.

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 one parameter and schema description coverage is 0% — the schema only constrains length (3–60). The description partially compensates by saying the value is an IPv4 or IPv6 CIDR block, but gives no example format (e.g. '10.0.0.0/24'), no statement about host-bit handling, and no valid-range guidance.

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?

States a specific verb (compute) and a specific resource (IPv4/IPv6 CIDR block) and enumerates the outputs (network address, broadcast/last address, address counts). It is unmistakable what the tool does, though it never mentions the inverse sibling ip_range_to_cidr, so sibling differentiation is left to inference.

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 input scoping ('for an IPv4 or IPv6 CIDR block'), but there is no explicit when-to-use, no exclusion, and no pointer to the related sibling tools such as ip_range_to_cidr or lookup_ip_info. An agent can infer the context but gets no routing guidance.

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.