Skip to main content
Glama

Calculate Subnet

calculate_subnet

Calculate IPv4 subnet information from an address with CIDR notation, a prefix length, or a dotted decimal subnet mask.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesIPv4 address, optionally including CIDR notation, for example 192.168.1.10/24.
subnetMaskNoOptional dotted decimal subnet mask, for example 255.255.255.0.
prefixLengthNoOptional CIDR prefix length from 0 to 32, for example 24.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. 'Calculate' implies a pure, read-only computation, and the input forms are specified. However, it does not disclose what specific subnet information is returned, error handling, or edge cases, which leaves some behavioral ambiguity.

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, well-structured sentence that front-loads the action and includes all necessary input context. No redundant wording; every word contributes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity calculator with no output schema, the description gives a reasonable overview but leaves the exact return value unspecified. An agent may not know whether it receives network address, broadcast, usable hosts, etc., which is a meaningful gap.

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 baseline is 3. The description adds a concise summary of the three input alternatives, but it does not provide details beyond the schema's own parameter descriptions. It adds little extra semantic value.

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 states a clear action ('Calculate') and a specific resource ('IPv4 subnet information') along with the three accepted input forms. It is immediately obvious what the tool does, and it stands alone even without sibling differentiation.

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 clear context for when to use the tool: whenever subnet information is needed from an address with CIDR, a prefix length, or a dotted mask. It doesn't explicitly discuss exclusions or alternatives, but no siblings exist, so the provided context is sufficient.

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.2/5.0
Disambiguation5/5

Only one tool exists, so there is no possibility of confusion or misselection. The tool's name and description clearly define its single purpose.

Naming Consistency5/5

The sole tool follows a clear verb_noun pattern ('calculate_subnet'), which is consistent and intuitive. With only one tool, there are no conflicting naming conventions.

Tool Count5/5

The server's purpose is narrowly defined as IPv4 subnet calculation, and a single comprehensive tool fully addresses that purpose. The count is neither excessive nor insufficient for the focused scope.

Completeness5/5

The tool accepts all standard IPv4 subnet input formats (CIDR, prefix length, dotted decimal) and conceptually returns the complete subnet information. There are no obvious gaps for the stated IPv4-only domain.