Ping host
pingSend 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
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname (e.g. 'example.com') or IPv4/IPv6 address (e.g. '8.8.8.8'). No URLs, ports, paths or spaces. | |
| count | No | Number of ICMP echo requests to send (1-10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Normalized host requested by the caller. | |
| address | Yes | IP address that was actually pinged. | |
| received | Yes | ICMP echo replies received. | |
| rtt_avg_ms | Yes | Average round-trip time in ms (null if none). | |
| rtt_max_ms | Yes | Maximum round-trip time in ms (null if none). | |
| rtt_min_ms | Yes | Minimum round-trip time in ms (null if none). | |
| transmitted | Yes | ICMP echo requests sent. | |
| packet_loss_percent | Yes | Packet loss, 0-100. |