enable_route
Enable a MikroTik route by destination address, optionally narrowing by gateway or comment to resolve duplicate routes. Preview changes before applying with confirm.
Instructions
Enable a route (/ip/route set disabled=no), resolved by
dst_address - narrowed by gateway/comment when more than one
route shares that dst_address (e.g. two default routes to
different gateways, the standard failover shape). Errors clearly if
nothing matches, or if the match is still ambiguous after
narrowing.
WRITE tool, guarded: blocked entirely unless the server is running with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the default) to get a before/after preview without changing anything; call again with confirm=True to actually apply it.
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>",
"dst_address": "<dst_address>"
},
"name": "enable_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| confirm | No | ||
| gateway | No | ||
| device_name | Yes | ||
| dst_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||