Skip to main content
Glama

ip cidr

ip_cidr
Read-only

Subnet calculator: network, broadcast, netmask, wildcard, first and last host, address counts and type (private, public, CGNAT...) for a CIDR, membership test for an IP, splitting into smaller subnets, or the CIDR blocks that cover an IP range. Costs $0.002 USDC per call (x402).

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

Input Schema

NameRequiredDescriptionDefault
ipNo
cidrYes
split_toNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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=true, so safety is covered. The description adds genuinely useful context beyond that: the call costs $0.002 USDC via x402, which is a material behavioral fact for an agent budgeting calls and not derivable from the schema or annotations. It stops short of describing rate limits or error behavior.

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 capability sentence followed by a short cost sentence; the core purpose is front-loaded and nothing is repeated. The capability list is long but each item is a distinct return value, so it earns its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 usefully enumerates the return fields, and the read-only annotations cover the safety profile. However, it leaves the mode-selection mechanism and split_to semantics undefined, which is the main gap an agent would hit when actually invoking the tool.

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 carries the full burden. It conveys functional roles (cidr = input block, ip = membership test, split_to = split into smaller subnets) but never names the parameters or disambiguates split_to's unit (prefix length vs. number of subnets). Partial compensation, so a middling score.

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 concrete verb+resource ('Subnet calculator') and then enumerates exactly what it computes: network, broadcast, netmask, wildcard, host range, address counts, address type. It also names the four operating modes (CIDR analysis, IP membership test, subnet splitting, range-to-CIDR coverage), which clearly separates it from siblings like ip, ip_asn, and ip_risk that deal with IPs but not subnet math.

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?

The four modes are enumerated, which implies when each is relevant, but no explicit trigger conditions or alternative-tool routing are given (e.g. 'use ip for geolocation instead'). An agent can infer intent from the mode list but must guess how the modes are selected.

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