add_static_route
Add a static route to a MikroTik router by specifying destination subnet and gateway, with optional administrative distance and comment.
Instructions
Tambah route statis. BUTUH MIKROCLAW_ALLOW_WRITE=true.
Args: dst_address: subnet tujuan, mis. '10.20.0.0/24' atau '0.0.0.0/0' (default route). gateway: gateway/next-hop, mis. '192.168.88.1' atau nama interface. distance: (opsional) administrative distance, mis. '1'. comment: catatan pada route.
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": {
"dst_address": "<dst_address>",
"gateway": "<gateway>"
},
"name": "add_static_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | added-by-mikroclaw | |
| gateway | Yes | ||
| distance | No | ||
| dst_address | Yes |