Manage Static Route
manage_routeAdd or remove static routes on MikroTik routers. Validates changes with idempotency checks and supports dry-run mode for safe testing before applying.
Instructions
Add or remove a static route on a MikroTik router. Performs idempotency checks for add operations and supports dry-run mode for all actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier from the router registry | |
| action | Yes | Action to perform: add or remove a route | |
| dstAddress | Yes | Destination address in CIDR notation or plain IP (auto-converted to /32), e.g. 10.0.0.0/8 or 10.77.0.4 | |
| gateway | Yes | Gateway IP address | |
| distance | No | Route distance/metric (1-255) | |
| comment | No | Optional comment for the route | |
| routingTable | No | Routing table name (default: main). Use for policy routing with separate tables. | |
| disabled | No | Whether the route should be disabled | |
| dryRun | No | If true, validate and return planned changes without applying | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |