Skip to main content
Glama

Lookup Kit

cidr_calc

Read-only

Subnet calculator, CIDR calculator, IP range for IPv4 and IPv6. Subnet calculator for IPv4 and IPv6 CIDR blocks (e.g. 192.168.1.0/24): network and broadcast addresses, first and last usable host, netmask, wildcard, number of addresses, and whether an optional IP is inside the block. Price: $0.001 per call (x402, USDC on Base).

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": "cidr_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
cidrYes
containsNo

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 and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral context: the exact result fields returned and a cost disclosure ($0.001 per call, x402/USDC on Base), which matters for call planning. It omits error behavior for malformed CIDRs, which keeps it short of a 5.

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

Conciseness3/5

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

The substantive content is well front-loaded, but the opening is keyword-stuffed: 'Subnet calculator, CIDR calculator, IP range for IPv4 and IPv6' is immediately restated by 'Subnet calculator for IPv4 and IPv6 CIDR blocks'. The repeated phrasing costs space without adding 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?

With no output schema, the description correctly takes on the job of enumerating return values, and it does so thoroughly. For a two-parameter, read-only calculation tool this is close to complete; only malformed-input behavior and explicit parameter naming are 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 description coverage is 0%, so the description must carry parameter meaning. It gives a concrete input format example (192.168.1.0/24) for the required CIDR argument and explains that an optional IP can be tested for containment, which maps to the two parameters. However, it never names or documents the `cidr` and `contains` fields explicitly, nor the length limits, so compensation is partial.

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 names a specific resource and operation (subnet/CIDR calculation) and enumerates exactly what is computed: network and broadcast addresses, first and last usable host, netmask, wildcard, address count, and containment check. An agent can distinguish this from neighbors like ip_location or check_domain without opening the schema.

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 rather than stated: an agent can infer it should be called with a CIDR block such as 192.168.1.0/24, and the description clarifies the tool is limited to IPv4/IPv6 blocks. There is no explicit when-to-use/when-not guidance and no named alternative, though the sibling list offers no obvious competing tool.

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