ping_host
Check if a remote host is reachable on the network, measuring packet loss and round-trip latency using ICMP echo requests.
Instructions
Ping a host with ICMP echo requests and report packet loss and latency.
Answers: "Is this machine reachable at the network level, and how lossy or slow is the path?" Uses the system ping binary (unprivileged), so it works out of the box on macOS and Linux.
Args: host: Hostname, IPv4, or IPv6 address (e.g. "store-042.example.com", "10.1.42.1"). Validated strictly; shell metacharacters rejected. count: Number of echo requests to send, clamped to 1..10 (default 4).
Returns: On success: {"ok": true, "host", "count", "reachable", "packets_sent", "packets_received", "packet_loss_percent", "rtt_ms": {"min", "avg", "max"} | null}. On failure (unknown host, timeout, ping missing): {"ok": false, "error": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||