Skip to main content
Glama

util_cidr_merge

Read-only

CIDR Merge and Aggregate — Collapse a list of IPv4/IPv6 addresses, CIDRs and start-end ranges into the smallest exact CIDR set, offline. cidrs= is separated by commas, spaces, | or newlines (up to 5000 entries). Optional exclude= cuts ranges out (holes split blocks) and format=json|plain|nginx_deny|nginx_allow|iptables|apache_deny returns ready-to-paste lines in text. Merges duplicates, overlaps and adjacent blocks, normalizes host bits (10.0.0.5/24 to 10.0.0.0/24), reports invalid entries, exact address counts, ranges and the reduction percentage. Pairs with threat/blocklist and firewall audits. Price: $0.002 USDC (Base, via 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": {
      "cidrs": "<cidrs>"
    },
    "name": "util_cidr_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
cidrsYes10.0.0.0/25,10.0.0.128/25,10.0.1.0/24,192.168.1.7,192.168.1.6,2001:db8::/33,2001:db8:8000::/33

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds real behavioral context: a 5000-entry cap, host-bit normalization, invalid-entry reporting, and a per-call price of $0.002 USDC via x402. However, it describes exclude= and format= inputs that do not exist in the supplied schema, which will mislead an agent attempting those calls.

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?

Front-loads the core action and scope in the first sentence, then layers input format, output formats and return details efficiently. It is dense and slightly run-on, and the trailing pricing sentence is bolted on, but almost every clause carries 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 does the work of explaining returns: invalid entries, exact address counts, ranges, and reduction percentage. Limits, output formats and cost are all present; the only real gap is the mismatch between advertised optional parameters and the actual single-parameter schema.

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 cidrs parameter is documented by example, so the baseline is 3. The description genuinely adds separator flexibility (comma, space, pipe, newline) and the 5000-entry limit, but then references exclude= and format= parameters absent from the schema, which is a net wash for parameter clarity.

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 and resource: collapse IPv4/IPv6 addresses, CIDRs and start-end ranges into the smallest exact CIDR set. The aggregation scope ('merges duplicates, overlaps and adjacent blocks') clearly differentiates it from a single-CIDR sibling like util_cidr without needing to name it.

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?

Gives concrete usage contexts ('Pairs with threat/blocklist and firewall audits') and notes the operation is offline, which sets expectations about no external lookups. It does not state when to reach for a different utility instead, so it stops short of full when/when-not 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