Skip to main content
Glama
Network Diagnostics MCP

Network Diagnostics MCP

by Ahmad-1276

check_tcp_port

Tests whether a TCP port is open and measures connection latency to verify service availability and diagnose network reachability.

Instructions

Check whether a TCP port is open and measure connection latency.

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>",
      "port": "<port>"
    },
    "name": "check_tcp_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It reveals that latency is measured, which is genuinely useful, but says nothing about timeout behavior, what happens on a closed port versus a filtered/unreachable one, or whether the probe is safe/non-destructive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the core verb and resource come first. It is arguably too short given the unaddressed timeout and error semantics, but there is no wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. For a simple read-only probe this is close to adequate, but the omission of timeout and failure-mode semantics leaves an agent without guidance on a required parameter interaction.

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 0%, so the description must compensate, yet it names no parameters. Host and port are largely self-explanatory from their names, and the timeout default of 3 is captured in the schema, so the practical gap is moderate rather than severe.

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 and resource ('Check whether a TCP port is open') plus the secondary measurement ('measure connection latency'), which an agent can map to a concrete operation. It does not explicitly contrast itself with siblings like ping_host or dns_lookup, but the port-level scope is distinctive enough on its own.

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?

No guidance on when to use this versus the sibling probes (ping_host, dns_lookup) or when not to use it. The agent must infer that this is the right tool for port reachability specifically, with no exclusions or prerequisites stated.

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