Skip to main content
Glama

calcular_subred

Calculates IPv4 subnet network, mask, wildcard, broadcast, host range, and type from a CIDR input to support reliable subnet planning.

Instructions

Calcula red, máscara, wildcard, broadcast, rango de hosts y tipo de una red IPv4.

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": {
      "red": "<red>"
    },
    "name": "calcular_subred"
  }
}

Input Schema

NameRequiredDescriptionDefault
redYesRed en CIDR, p. ej. 192.168.1.0/24

Output Schema

NameRequiredDescriptionDefault
redYes
cidrYes
tipoYes
mascaraYes
wildcardYes
broadcastYes
primer_hostYes
ultimo_hostYes
hosts_utilizablesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 carries the burden, but it does disclose the computed outputs, which is the meaningful behavior for a pure calculator. It does not state that the operation is side-effect-free/deterministic or what happens with invalid CIDR input, and an output schema already covers the return shape.

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 that names the operation and lists its outputs with zero filler. Nothing would be gained by shortening it.

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 calculator with a fully documented schema and an output schema, this is nearly complete: the agent knows the input and the computed fields. Only invalid-input behavior and any IPv6 exclusion are left implicit.

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% and the 'red' parameter already carries a CIDR example ('192.168.1.0/24'). The description adds only the notion of IPv4 (vs IPv6) and no further format or edge-case semantics, so the schema does the heavy lifting.

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 ('Calcula') and resource ('red IPv4') and enumerates the exact outputs: mask, wildcard, broadcast, host range and type. That enumeration distinguishes it from siblings like dividir_vlsm or comprobar_ip_en_red, though no sibling is named explicitly.

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 is purely a statement of what the tool computes; it gives no when-to-use context, no prerequisites, and no indication of how it differs in practice from subnet-splitting tools such as dividir_vlsm. Usage is only inferable from the verb.

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