Skip to main content
Glama

cidr_calc

Read-onlyIdempotent

[Local Compute · 0 credits] Deterministic IPv4/IPv6 CIDR subnet calculator returning network, broadcast, usable host range, netmask, wildcard, address count, and public-routability flag.

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
cidrYesIPv4 or IPv6 CIDR block (e.g. 192.0.2.0/24 or 2001:db8::/32).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and closed-world behavior, so the description is not required to cover safety. It still adds real context beyond structured fields: local computation at zero credits, deterministic results, and a public-routability flag in the output.

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?

One dense sentence with cost/execution context front-loaded and usefulness preserved; nothing is wasted, though the output enumeration packs many items into a single clause.

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?

Because there is no output schema, the description usefully enumerates return values (network, broadcast, host range, netmask, wildcard, count, routability flag). For a single-parameter pure function that is nearly sufficient; only error behavior for malformed CIDR is unstated.

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 'cidr' parameter already carries format examples, so the description's mention of IPv4/IPv6 is redundant with the schema. Baseline 3 applies since no additional accepted-syntax or validation detail is provided.

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+resource ('CIDR subnet calculator') with clear scope ('IPv4/IPv6') and enumerates the exact outputs, so an agent can distinguish it from resolution/lookup siblings like lookup_rdap 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 by the nature of the tool (deterministic math on a CIDR string) and reinforced by 'Local Compute · 0 credits', but there is no explicit when-to-use or when-not-to-use guidance relative to siblings such as search_autonomous_ais or lookup_rdap.

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