Skip to main content
Glama

ip_cidr

Details of an IPv4 network in CIDR notation: network and broadcast address, first and last usable host, netmask, number of addresses, and whether a given IP falls inside. Use for firewall rules and allowlists. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipNoOptional IPv4 address to test for membership
cidrYesIPv4 network in CIDR notation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The description adds real behavioral context beyond the annotations: it is a paid call costing $0.001 USDC on Base via x402, and it only charges on successful calls. That is the kind of billing/auth detail annotations do not capture. It does not, however, address the unusual readOnlyHint=false / idempotentHint=false annotations on what is functionally a pure computation, leaving a small inconsistency unclarified.

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?

Three sentences, each carrying distinct information (outputs, use case, cost), with the core purpose front-loaded. It is appropriately sized, though the output enumeration is a long clause that could be tightened slightly.

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 compensates by enumerating the return fields, and it discloses the payment model. An agent has enough to call this correctly and predict the response shape. The only gap is the unexplained mutation/idempotency annotations for what is otherwise a read-style computation.

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 both parameters (cidr, ip) are already documented in the schema, which sets the baseline at 3. The description's phrase "whether a given IP falls inside" restates the schema's own "test for membership" rather than adding syntax, format, or validation detail. No meaningful value is added over the structured field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (IPv4 network in CIDR notation) and enumerates exactly what it returns: network/broadcast address, first/last usable host, netmask, address count, and membership test. This is far more concrete than a tautology. It does not explicitly distinguish itself from the sibling ip_info, which is the one nearby tool an agent might confuse it with, so it stops short of a 5.

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?

"Use for firewall rules and allowlists" gives a concrete, actionable context for selecting this tool. There is no statement of when NOT to use it and no explicit routing to alternatives such as ip_info, so it falls short of the full when/when-not/alternatives bar.

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