update_route
Modify an existing MikroTik route by specifying its route ID, with optional fields to adjust gateway, distance, destination, and other settings.
Instructions
Updates a route.
Notes: route_id: "*N" or "N" from list output e.g. "*3" dst_address: CIDR e.g. "192.168.1.0/24" check_gateway: "ping" or "arp" distance: 1-255 Pass "" to routing_mark, vrf_interface, or pref_src to clear them.
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": {
"route_id": "<route_id>"
},
"name": "update_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| device | No | ||
| comment | No | ||
| gateway | No | ||
| disabled | No | ||
| distance | No | ||
| pref_src | No | ||
| route_id | Yes | ||
| dst_address | No | ||
| routing_mark | No | ||
| target_scope | No | ||
| check_gateway | No | ||
| vrf_interface | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |