Skip to main content
Glama

ip_cidr

IPv4/IPv6 CIDR math. Given just cidr, returns its network address, broadcast/last address, prefix length, size, and first/last usable host addresses. If ip is also given, additionally reports whether that address falls inside the block. Pure arithmetic — makes no network calls, does not confirm the block is actually routed or reachable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipNoOptional IP address to test for membership in `cidr`.
cidrYesA CIDR block, e.g. "10.0.0.0/24" or "2001:db8::/32".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It clearly discloses that the operation is pure arithmetic, makes no network calls, and does not verify routing or reachability. This is valuable behavioral context beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no filler. The core functionality is front-loaded, and the no-network-call caveat is placed at the end for emphasis. Every word earns its place.

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?

For a simple two-parameter tool with no output schema, the description covers the main behavior, the optional ip logic, and the key limitation. An agent has enough to call it correctly without further clarification.

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% and both parameters are already well-documented. The description adds a behavioral note about the 'ip' parameter (returns membership) but that is already implied by the schema. Baseline 3 is appropriate.

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 ('CIDR math') and resource, listing the exact return values (network address, broadcast, prefix length, size, usable hosts). It also distinguishes itself from network-check siblings by noting it makes no network calls.

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?

Provides a clear context for when to use it (CIDR calculations) and explicitly states what it does NOT do ('does not confirm the block is actually routed or reachable'), which implies an alternative tool for reachability checks. However, it does not name any sibling explicitly.

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