Skip to main content
Glama

500Toolbox

Ping Host

ping
Read-onlyIdempotent

Probes a public host and reports min/avg/max round-trip time, jitter and packet loss. ICMP is used where the environment permits raw sockets; otherwise a TCP handshake to the given port is timed instead. The response says which method produced the numbers, because the two are not interchangeable. Private, loopback and link-local addresses are refused. Costs 2 credits per call.

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 or IP address. A full URL is accepted and its host is used.
portNoTCP port used when ICMP is unavailable. Defaults to 443.
countNoHow many probes to send. Defaults to 4.
timeoutMsNoPer-probe timeout in milliseconds. Defaults to 2000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so safety is covered, and the description still adds substantial behavior: raw-socket ICMP where permitted, TCP handshake timing otherwise, an explicit warning that the two methods are not interchangeable, refusal of private/loopback/link-local targets, and a 2-credit cost per call. The disclosure that the response labels which method produced the numbers is exactly the kind of context an agent cannot infer from structured fields.

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?

Four sentences, front-loaded with what is measured, followed by method caveats and the address restriction. Every clause carries information an agent needs; nothing is repeated from the schema or annotations.

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?

With no output schema, the description carries the return-value burden and does so by naming the reported metrics and the method indicator. Combined with the target restrictions and cost, an agent has everything needed to decide whether to call it and how to interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description earns a point by explaining that 'port' only matters when ICMP is unavailable and that the timed TCP handshake targets it. That gives the port parameter a purpose the schema alone only hints at.

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?

States a specific verb and resource ('Probes a public host') and enumerates exactly what it returns: min/avg/max round-trip time, jitter and packet loss. The ICMP-vs-TCP fallback detail makes clear this is a network reachability/latency probe, not a DNS or HTTP tool, so it is distinguishable from siblings like dns-lookup and http-request.

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: it probes public hosts and refuses private/loopback/link-local addresses, which implicitly steers agents away from internal targets. However, it never says when to choose ping over siblings such as dns-lookup, ssl-check or http-request, nor when the TCP-fallback result is an acceptable substitute for a real ICMP measurement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources