Skip to main content
Glama

check_connectivity

Read-only

Tests DNS resolution and TCP connectivity to a host and port, then reports connection latency.

Instructions

Test DNS resolution and a TCP connect to host:port, reporting latency.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_connectivity"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo1.1.1.1
portNo
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 agent knows this is a safe outbound probe. The description adds that it performs two stages (DNS then TCP) and that it reports latency, which is genuine behavioral value with no output schema present. It does not explain what is returned or how a DNS-only failure versus a connection refusal is surfaced, which is the remaining gap.

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?

One front-loaded sentence that names the action, the target, and the reported result with zero filler. Nothing could be removed without losing information.

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?

With no output schema, the description carries the burden of explaining results, and it does so only shallowly ('reporting latency'). It omits failure semantics (does an unreachable host return an error or a result?) and any guidance on how the two test stages are reported separately. Adequate for a simple 3-parameter probe, but not complete.

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 has to compensate; it only partially does by tying host and port together as 'host:port'. The timeout_s parameter is never mentioned, although its name and 3-second default make it largely self-explanatory and all three parameters are optional.

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 concrete operations (DNS resolution plus a TCP connect to host:port) and a concrete output (latency), which is far more specific than the tool name alone and clearly separates it from a status-listing tool like network_status. It stops short of explicitly differentiating itself from any named sibling, so it sits at 4 rather than 5.

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 'use this to verify a specific host:port is reachable,' but the description never states when to prefer this over network_status or when not to use it. No prerequisites, no exclusions, no alternatives named.

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