Skip to main content
Glama

add_route

Adds a static route to the MikroTik routing table using destination CIDR and gateway, with optional routing table, distance, and gateway check settings.

Instructions

Adds a route to the routing table.

Notes: dst_address: CIDR e.g. "0.0.0.0/0", "192.168.1.0/24" routing_table: name of a table from /routing table, e.g. "via_ISP2"; defaults to "main". RouterOS 6 called this the routing mark. check_gateway: "ping" or "arp" distance: 1-255 (lower = higher priority)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNo
deviceNo
commentNo
gatewayYes
disabledNo
distanceNo
pref_srcNo
dst_addressYes
target_scopeNo
check_gatewayNo
routing_tableNo
vrf_interfaceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.19.4
    • removedInput schema / properties / routing_mark
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Routing Mark"
      -}
    • addedInput schema / properties / routing_table
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Routing Table"
      +}
  2. Changed1 schema field changedv0.14.5
    • addedInput schema / properties / device
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Device"
      +}
  3. First observedv0.0.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations include destructiveHint: false and openWorldHint: false, but there is no readOnlyHint, so the description must disclose the mutating nature and any side effects. It only states 'Adds a route' without mentioning required permissions, reversibility, or potential impact on existing routes. This is a significant gap for a write operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise paragraph with a clean list of parameter notes. There is no fluff, and the most critical parameter details are front-loaded. It could be slightly better structured but is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 12 parameters and 0% schema description coverage, the description must compensate heavily. It covers only a third of the parameters and provides no context on return values, prerequisites (e.g., routing table existence), or side effects. The output schema exists but is not shown, so the description alone is insufficient for an agent to call this tool correctly in all cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source for parameter meaning. It provides useful notes for dst_address, routing_table, check_gateway, and distance, but ignores the other 8 parameters (scope, device, comment, gateway, disabled, pref_src, target_scope, vrf_interface). While some are self-explanatory from names, the lack of coverage for required parameters like gateway is a miss.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Adds a route to the routing table') with a specific verb and resource. It does not explicitly differentiate from sibling tools like add_default_route or add_blackhole_route, but the name and description imply a general route addition, which is understandable without explicit exclusions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when to use this tool versus alternatives such as add_default_route or add_blackhole_route. It does not mention any prerequisites or conditions that would select this tool over others, leaving the agent to infer usage context from the name and parameter notes alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools