Skip to main content
Glama

util_cidr

Read-only

CIDR / subnet calculator — IPv4 subnet math: network, broadcast, netmask, wildcard, first and last host, address counts, private-range flag, and an optional check of whether an IP falls inside the block. Price: $0.001 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": {
      "cidr": "<cidr>"
    },
    "name": "util_cidr"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNooptional IP to test for membership
cidrYese.g. 10.0.0.0/24

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: it discloses that the tool is metered ('Price: $0.001 USDC (Base, via x402)') and, with no output schema present, lists the return fields an agent should expect.

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?

It is a single front-loaded sentence that leads with the tool identity before listing outputs and pricing, with no filler. The output enumeration is dense but every item earns its place given the absence of an output schema.

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?

For a two-parameter, read-only utility with 100% schema coverage, the definition covers purpose, expected return fields, and cost. The remaining gap is minor: it does not state the response shape, units, or payment failure behavior, but nothing critical for correct invocation 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 coverage is 100%, so both parameters are already documented in the schema, which sets the baseline at 3. The description adds only mild meaning by framing the optional IP as a membership check against the block; it gives no format hints (e.g. CIDR prefix bounds, IPv4-only constraint) beyond the schema's '10.0.0.0/24' example.

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 verb and resource ('CIDR / subnet calculator — IPv4 subnet math') and enumerates exactly what it computes (network, broadcast, netmask, wildcard, host range, counts, private-range flag). That enumeration makes it clearly distinct from a general calculator like util_calc, though it never explicitly contrasts itself with the sibling 'ip' tool, which an agent could plausibly confuse with this one.

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?

Usage is implied rather than stated: the tool is a subnet calculator, and the optional IP membership check hints at the second parameter's use case. There is no explicit when-to-use versus when-not guidance and no named alternative for, say, a single-address qualification lookup, leaving routing to inference.

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