Skip to main content
Glama

x402 Toolbox

Subnet calculator for an IPv4/IPv6 CIDR block

cidr_info
Read-onlyIdempotent

Subnet calculator for an IPv4/IPv6 CIDR block. Network and broadcast addresses, first/last usable host, netmask and wildcard, number of addresses and usable hosts, address class and scope. Notes when the input had host bits set. Price: $0.003 USDC per call via x402 (eip155:8453).

Input Schema

NameRequiredDescriptionDefault
cidrYese.g. 10.0.0.0/22 or 2001:db8::/48

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered; the description earns credit by adding two things annotations can't express — the $0.003 USDC x402 payment requirement (with chain id) and the normalization note that it flags when the input had host bits set. It stops short of explaining output format or error behavior, but that is a minor gap given the free-standing read-only profile.

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: the first fronts the purpose and the enumerated results, the second carries the single caveat and pricing. No filler, no repetition of the title, and no sentence that could be dropped without losing 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 must signal return values and it does so by listing the computed fields, which is exactly what an agent needs to decide whether to call it. The only omission is that the shape of the response (flat object vs. text) is left unstated.

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?

Only one parameter and schema description coverage is 100%, with concrete examples (10.0.0.0/22, 2001:db8::/48) already in the schema. The description's mention of 'IPv4/IPv6' and the host-bits note adds a little semantic value but nothing about accepted formats beyond what the schema carries, so this sits at the baseline.

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+resource ('Subnet calculator for an IPv4/IPv6 CIDR block') and itemizes exactly what it computes. The enumerated outputs (network/broadcast, first/last usable host, netmask, wildcard, counts, class/scope) differentiate it from siblings like cidr_split and cidr_aggregate, which also take CIDR input.

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 only implied: the enumerated outputs make it clear this is the 'inspect one block' tool versus cidr_split or cidr_aggregate, but no sibling is named and no when-to-use/when-not guidance is given. An agent must infer the routing from the output list.

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.