Local Mtr
local_mtrDiagnose network path issues by running mtr to show per-hop packet loss and latency statistics between your host and any target. Combines ping and traceroute in one command.
Instructions
Run mtr (My Traceroute) combining ping and traceroute.
Shows per-hop packet loss and latency statistics. Requires mtr to be installed. May require admin/sudo for raw ICMP sockets on some systems — if permission is denied, the error will say so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname or IP address (an IPv6 literal may be bracketed) | |
| count | No | Number of pings per hop (1-100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Additional context about the result | |
| error | No | Why the tool could not produce a result: input validation failure, tool disabled by configuration, binary not installed, or no service answered. Empty when the command executed. | |
| stderr | Yes | Standard error of the command, or the failure message when the command did not run | |
| stdout | Yes | Standard output of the command (curl output is capped at 10,000 characters) | |
| command | Yes | The exact command line that was executed, or the tool name if the command never ran | |
| success | Yes | True when the command ran and exited with status 0 | |
| platform | Yes | Operating system the command ran on (Darwin, Linux or Windows) | |
| returncode | Yes | Process exit status. 0 = success; 2 = input rejected before running; 124 = timed out; 126 = disabled by config or permission denied; 127 = binary not found |