Skip to main content
Glama

comprobar_puerto

Read-only

Checks whether a TCP port on a specified host is open, closed, or filtered to help diagnose network connectivity issues.

Instructions

Comprueba si un puerto TCP de un equipo está abierto, cerrado o filtrado.

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": {
      "host": "<host>",
      "puerto": "<puerto>"
    },
    "name": "comprobar_puerto"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesIP o nombre del equipo
puertoYesPuerto TCP, p. ej. 443

Output Schema

NameRequiredDescriptionDefault
hostYes
estadoYes
puertoYes
abiertoYes
latencia_msNo

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?

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and network-access profile is covered. The description adds the tri-state outcome model (open/closed/filtered), which is genuinely useful behavioral context, but says nothing about timeouts, retry/scan semantics, or why a port may report 'filtered' — all relevant for a probing tool.

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 states the resource, the protocol, the subject and the outcome space with no filler. Nothing in it is redundant or misplaced.

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 only two fully documented required parameters, an output schema covering results, and annotations declaring read-only open-world behavior, the description covers what an agent needs to select and call the tool. Only minor behavioral detail (timeout, definition of 'filtrado') is absent.

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%: 'host' is documented as IP or hostname and 'puerto' as a TCP port with range 1-65535 and an example. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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 gives a specific verb+resource ('comprobar si un puerto TCP ... está abierto, cerrado o filtrado') and even enumerates the three possible verdicts, which lets an agent distinguish it from host-level checks like hacer_ping or comprobar_ip_en_red. It stops short of naming any sibling explicitly, so it is clear but not fully differentiated.

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 use case (verifying reachability of a specific TCP service on a host) is strongly implied by the wording, but there is no explicit when-to-use/when-not guidance, no mention of prerequisites, and no routing to alternatives such as hacer_ping for plain host reachability.

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