Skip to main content
Glama

comprobar_ip_en_red

Checks whether an IPv4 address belongs to a given CIDR network and identifies it as the network address, broadcast address, or a usable host.

Instructions

Indica si una IP pertenece a una red y si es de red, broadcast o un host utilizable.

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

Input Schema

NameRequiredDescriptionDefault
ipYesDirección IPv4, p. ej. 192.168.1.130
redYesRed en CIDR, p. ej. 192.168.1.128/26

Output Schema

NameRequiredDescriptionDefault
ipYes
redYes
papelYes
perteneceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the output classification (network / broadcast / usable host). It does not state that this is a pure local computation with no side effects or network traffic — relevant because sibling 'hacer_ping' implies real network activity — though the risk is low for a two-string calculator.

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; the core check and the three possible classifications are packed into one clause without redundancy.

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?

A simple two-parameter read tool with a full output schema and complete parameter documentation needs little more than this. The only minor gap is the unspecified behavior when the IP is outside the given network, though 'indica si pertenece' implies a negative answer is returned.

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% and both parameters already carry descriptions with concrete examples (192.168.1.130, 192.168.1.128/26). The description reinforces the ip-belongs-to-red relationship but adds no format, validation, or edge-case guidance beyond the schema, so the baseline 3 holds.

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+resource pair ('indica si una IP pertenece a una red') and enumerates the exact classification it returns (red, broadcast, host utilizable), which distinguishes it from siblings like calcular_subred or dividir_vlsm that compute rather than verify. It stops short of naming any sibling explicitly.

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: an agent can infer this is the tool for validating membership of one address in one CIDR block, but the description states no when-to-use conditions, no prerequisite format, and no exclusions versus the subnetwork-calculation siblings.

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