Skip to main content
Glama

cidr_calculate

Calculate subnet details from CIDR notation, including network address, broadcast address, subnet mask, and host count.

Instructions

Calculate subnet details from a CIDR notation (network, broadcast, mask, host count).

Input Schema

NameRequiredDescriptionDefault
cidrYesCIDR notation (e.g. 192.168.1.0/24).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description bears the full burden. It discloses the computed outputs (network, broadcast, mask, host count), which implies a deterministic, side-effect-free read operation, but it never states this explicitly nor covers return format or error behavior.

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?

A single front-loaded sentence with zero filler that names the input and enumerates the outputs. Every clause earns its place.

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 one-parameter compute tool with 100% schema coverage, the description is nearly sufficient, and enumerating the returned fields usefully compensates for the absent output schema. It could be slightly more complete about output format, but nothing critical 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 description coverage is 100% for the single cidr parameter, so the schema already documents the input format with an example. The description adds no syntax or format detail beyond what the schema provides, making the baseline 3 appropriate.

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?

States a specific verb (Calculate) and resource (subnet details) driven by a clear input (CIDR notation), which implicitly separates it from siblings like ip_validate or ip_lookup. It does not explicitly name any sibling, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description says what it computes but gives no when-to-use context, prerequisites, or alternatives (e.g., ip_validate for checking validity). Usage is only inferable from the purpose, matching the 'no guidance' bar.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools