disable_route
Disable a MikroTik route matched by destination address, optionally narrowed by gateway or comment, with a preview before confirming changes and a warning for default-route impact.
Instructions
Disable a route (/ip/route set disabled=yes), resolved by
dst_address - narrowed by gateway/comment when more than one
route shares that dst_address. Errors clearly if nothing matches,
or if the match is still ambiguous after narrowing.
RISK: disabling the default route (dst_address="0.0.0.0/0" or
"::/0") cuts all outbound traffic that relies on this gateway. The
returned preview's warning field is non-null whenever this is the
case - always check it before calling again with confirm=true.
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 (including the warning
field) 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": "disable_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 | |||