Skip to main content
Glama
murzirius

VPS-Guardian-MCP

by murzirius

test_network_connectivity

Benchmark outbound network connectivity and latency by measuring DNS resolution, TCP handshake, and TLS handshake times via direct Python sockets, without relying on shell ping.

Instructions

Benchmark outbound network connectivity and latency using direct Python sockets.

Measures DNS resolution latency, TCP handshake time, and TLS handshake latency without shell ping.

Args: target_host: Destination hostname or IP address (e.g. 'api.github.com' or '8.8.8.8'). port: Destination port (1-65535, default 443). timeout_seconds: Network socket timeout (0.5 to 30.0 seconds, default 5.0).

Returns: JSON string with stage latency breakdown, resolved IP addresses, and TLS session details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
target_hostYes
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it delivers substantive behavior details: direct Python sockets, no shell ping, and exactly which latency stages are measured. It also discloses the return shape. It stops short of noting potential side effects like outbound connections to arbitrary hosts, but those are strongly implied by the TCP/TLS handshake wording.

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 well organized and front-loaded: a one-sentence summary, followed by bullet-style Args and a Returns section. Every sentence contributes information and nothing is redundant.

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 three-parameter network diagnostic without annotations, the description covers the core purpose, parameter constraints, and return format. It does not provide explicit sibling guidance or safety notes, but the output schema exists and the description is otherwise sufficient for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has no descriptions for any property, so the description fully compensates. Each parameter gets a human-readable explanation with allowed ranges or defaults: target_host with examples, port with 1-65535 and default 443, timeout_seconds with 0.5-30.0 and default 5.0. This is exactly the semantic information an agent needs beyond the raw JSON schema.

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 opens with 'Benchmark outbound network connectivity and latency using direct Python sockets,' naming a specific verb, resource, and method. It further distinguishes itself by listing the three measured stages (DNS, TCP, TLS) and explicitly noting it does not use shell ping, which separates it from diagnostic siblings.

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 implies usage by explaining that it benchmarks network connectivity and latency, which gives an agent a clear sense of when it applies. However, it never explicitly states when to prefer this tool over related siblings such as check_dns_health or check_ssl_certificates, nor does it mention exclusions or alternatives.

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