Skip to main content
Glama

Subnet Lookup

subnet_lookup
Read-onlyIdempotent

"What is the range of [CIDR]" / "how many hosts in a /24" / "network and broadcast address for [X]" / "subnet calculator" — subnet arithmetic via HackerTarget, returning network address, broadcast address, usable host range, netmask and host count for a CIDR block. A pure calculation over the input; it does not probe the network.

Input Schema

NameRequiredDescriptionDefault
targetYesCIDR block or address with prefix, e.g. "192.168.1.0/24".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "target": "192.168.1.0/24"
      +  }
      +]
    • addedInput schema / properties / target / description
      Added value: +"CIDR block or address with prefix, e.g. \"192.168.1.0/24\"."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the bar is lower; the description still adds real context by disclosing the HackerTarget dependency and that no network probing of the target occurs. The remaining gap is that no error/edge-case behavior (e.g. malformed CIDR) is described.

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?

Front-loaded with concrete user phrasings, then the capability, then the output list, then the scoping boundary. Dense but every clause earns its place; the em-dash query pile is slightly cluttered but functional.

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?

For a single-parameter, no-output-schema tool, the description supplies the return fields, the input form, the external dependency, and the non-probing constraint. Nothing an agent needs to call it correctly is missing.

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% and the single 'target' parameter is fully documented in the schema with an example, so the schema does the heavy lifting. The description only restates the CIDR-block input form, adding no syntax or validation detail beyond it.

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?

States a specific verb and resource (subnet arithmetic on a CIDR block) and enumerates the exact outputs: network address, broadcast address, usable host range, netmask, host count. The opening user-query phrasings make it immediately distinguishable from siblings like dns_lookup, reverse_dns, or nping.

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 quoted example queries imply the triggering contexts well, and the closing sentence draws an explicit boundary — 'a pure calculation over the input; it does not probe the network' — ruling out the network-probing siblings. It does not name a specific alternative tool, so it stops short of 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.