Skip to main content
Glama

ScorpTech x402 Tools

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. Returns JSON with: family, cidr, network, prefixLength, totalAddresses, type, note, netmask. Price: $0.001 USDC per successful call (x402, Base or 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
Behavior5/5

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

Goes well beyond annotations by disclosing that calls cost $0.001 USDC per successful call via x402 on Base or Solana, and that the same tool is reachable over HTTPS at a given endpoint — critical operational facts an agent cannot infer from readOnlyHint/idempotentHint. It also names the returned JSON fields, which matters because no output schema exists.

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?

Purpose is front-loaded and each clause carries information, but the core is one very long run-on enumeration followed by pricing and endpoint metadata. It is dense enough that a reader must parse carefully to extract the three usage modes.

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?

With no output schema, the description compensates by listing the returned fields, and with cost and transport details it covers everything needed to invoke the tool correctly. Nothing material for a stateless calculator 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 description coverage is 100%, so the baseline is 3. The description reinforces parameter meaning by describing the membership-check and split behaviors, but adds no format or constraint detail (e.g., split output limits, prefix bounds) beyond what the schema already documents.

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?

Opens with a specific verb+resource ("IPv4 / IPv6 subnet calculator") and enumerates concrete outputs: network/broadcast, netmask, wildcard, host counts, address type classification, reverse-DNS zone, and IPv6 compression. It also names the two operational modes (membership check, subnet splitting), which clearly separates it from the arithmetic/finance siblings like bond_calc or date_calc.

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?

It states the accepted input forms (CIDR, "ip netmask", or single IP) and implies when the optional behaviors apply ("check whether IPs fall inside" for contains, "split the block into smaller subnets" for splitPrefix). There are no explicit exclusions or pointers to alternative tools, so it stops short of a full 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.

Resources