Skip to main content
Glama
netdiag-mcp-server

netdiag-mcp-server

by LuizH12380

Ping host

ping
Read-onlyIdempotent

Send ICMP echo requests to a host and report packets sent/received, packet loss percentage, and min/avg/max round-trip latency for network reachability checks.

Instructions

Send ICMP echo requests to a host and report packets sent/received, packet loss (%) and round-trip latency min/avg/max in milliseconds. count is 1-10 (default 4) and each reply waits at most 2 seconds. 100% packet loss is a normal result (the host did not answer), not an error. Only public Internet destinations are allowed by default: targets that resolve to private, loopback, link-local or other non-public addresses are refused unless the server operator sets NETDIAG_ALLOW_PRIVATE=1.

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

Input Schema

NameRequiredDescriptionDefault
hostYesHostname (e.g. 'example.com') or IPv4/IPv6 address (e.g. '8.8.8.8'). No URLs, ports, paths or spaces.
countNoNumber of ICMP echo requests to send (1-10).

Output Schema

NameRequiredDescriptionDefault
hostYesNormalized host requested by the caller.
addressYesIP address that was actually pinged.
receivedYesICMP echo replies received.
rtt_avg_msYesAverage round-trip time in ms (null if none).
rtt_max_msYesMaximum round-trip time in ms (null if none).
rtt_min_msYesMinimum round-trip time in ms (null if none).
transmittedYesICMP echo requests sent.
packet_loss_percentYesPacket loss, 0-100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the per-reply 2-second timeout, the count cap, the semantics of total packet loss (not an error), and the private/loopback/link-local refusal policy including the NETDIAG_ALLOW_PRIVATE escape hatch. These are real behavioral facts an agent could not infer from readOnlyHint/openWorldHint alone.

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?

Four tight sentences with the outcome description front-loaded before constraints and caveats. The count/default restatement slightly duplicates the schema, a minor redundancy in an otherwise efficient block.

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

Completeness5/5

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

Covers return metrics, timing, interpretation of a zero-response result, and the address-eligibility restriction, which is the main way this call fails. An output schema exists, so the brief summary of returned fields is sufficient rather than over-specified.

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%, so host format and count bounds are already documented. The description largely restates count's 1-10 range and default, adding only the timeout context that is not tied to a parameter, so the baseline 3 applies.

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?

Names the exact mechanism (ICMP echo requests), the target (a host), and the exact return payload (packets sent/received, loss %, RTT min/avg/max in ms). An agent can distinguish this from a DNS or HTTP check purely from the description.

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 context is implied by the mechanics and by the eligibility constraint (public destinations only). There is no explicit statement of when to prefer this over the sibling dns_lookup or http_check, and no guidance on interpreting results beyond the 100%-loss note.

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

Deploy Server

Other Tools