Skip to main content
Glama

Cidr Calc

cidr_calc
Read-onlyIdempotent

IPv4 / IPv6 subnet calculator: network and broadcast/last address, netmask, wildcard, first/last usable host, address and host counts, address type (private, CGNAT, documentation, ULA, link-local...), reverse-DNS zone, expanded/compressed IPv6; check whether IPs fall inside, and split the block into smaller subnets. Accepts CIDR, "ip netmask" or a single IP. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/cidr-calc

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
cidrYese.g. 10.0.0.0/8, 2001:db8::/48, "192.168.1.0 255.255.255.0"
containsNoIPs to test for membership
splitPrefixNoSplit into subnets of this prefix length (first 256 listed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the description's main contribution is the cost model — '$0.001 USDC per successful call' via x402 on Solana — plus the equivalent HTTPS endpoint, which an agent needs before invoking a paid tool. It does not mention rate limits, failure/refund semantics for unsuccessful calls, or latency, so it is good but not exhaustive.

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?

Capabilities are front-loaded in a single dense clause chain, then the accepted input formats, then the pricing/endpoint. Nearly every clause carries information, though the trailing pricing sentence mixed with the HTTPS URL is slightly cluttered and could be split for readability.

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?

There is no output schema, and the description compensates by enumerating the returned fields (network, broadcast, netmask, wildcard, host range, counts, address type, reverse-DNS zone, expanded/compressed IPv6). Combined with input formats and cost/access details, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 earns above that by mapping semantics: 'check whether IPs fall inside' explains the contains array's purpose and 'split the block into smaller subnets' explains splitPrefix's intent, while 'Accepts CIDR, "ip netmask" or a single IP' clarifies the format flexibility of the cidr parameter. It does not explain the splitPrefix cap ('first 256 listed'), but that detail lives in the schema.

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 ('IPv4 / IPv6 subnet calculator') and then enumerates exactly what it derives: network/broadcast, netmask, wildcard, usable host range, counts, address type, reverse-DNS zone. This clearly separates it from sibling tools like ip_range_merge, inet_checksum, reverse_dns, or ip_intel without needing to open any schema.

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 invocation context by listing the accepted input forms (CIDR, 'ip netmask', or a single IP) and the three usage modes (compute, membership check via contains, subnet split). It does not name alternatives or state when *not* to use it (e.g., versus ip_range_merge for merging ranges or reverse_dns for PTR lookups), so it stops short of full 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.

Resources