Skip to main content
Glama

TinyFn

netmask_to_cidr

Convert subnet mask to CIDR prefix length.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
netmaskYesNetmask (e.g., 255.255.255.0)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
netmaskYes
cidr_prefixNo
cidr_notationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It states the conversion but does not disclose error handling, input validation, or return format (though output schema exists). The behavior is simple and predictable, but transparency is minimal.

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?

The description is a single sentence, fully front-loaded, with no extraneous information. Every word is necessary.

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 conversion tool with full schema coverage and an output schema, the description is complete enough. Edge cases and output details are covered by the structured fields.

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?

The parameter 'netmask' is described in the schema with an example, and the description adds no extra meaning. Since schema coverage is 100%, baseline is 3.

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?

The description clearly states the verb 'Convert' and the resource 'subnet mask to CIDR prefix length', making the purpose explicit. It distinguishes from sibling tools like 'cidr_to_netmask' and 'subnet_calculator'.

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?

The description does not explicitly guide when to use this tool versus alternatives like 'cidr_info' or 'subnet_calculator'. The purpose is implied by the name, but there is no mention of when not to use or preference over siblings.

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.