traceroute
Trace the network path to an IPv4/IPv6 address or hostname from a MikroTik device, listing each hop to diagnose connectivity or routing issues.
Instructions
Traceroute to an address from a device; returns the list of hops.
address must be a valid IPv4/IPv6 address or hostname (validated
exactly like ping's). count (probes per hop) and max_hops are
both capped low (see MAX_TRACEROUTE_COUNT/MAX_TRACEROUTE_MAX_HOPS)
and a fixed short per-hop timeout is used internally, so the command
can't run long enough to hit RouterOS's own ~60s API command
timeout.
Diagnostic only - this never changes device state, so it is not gated by MIKROTIK_ALLOW_WRITE and needs no confirm/preview.
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": {
"device_name": "<device_name>",
"address": "<address>"
},
"name": "traceroute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| address | Yes | ||
| max_hops | No | ||
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |