Skip to main content
Glama

add_ipv6_route

Create a static IPv6 route on a MikroTik device with dst_address and gateway. Preview changes with confirm=False, check default-route warnings, then apply with confirm=True.

Instructions

Add a static IPv6 route (/ipv6/route add): dst_address and gateway are required, distance (failover priority - lower wins) and comment are optional. Mirrors add_route on the IPv6 menu - never refuses a duplicate dst_address, multiple routes sharing one is the normal failover shape.

dst_address/gateway must be IPv6 (an IPv4 address/subnet in either is rejected before the device is ever touched - /ipv6/route has no IPv4 concept).

RISK: adding/overriding the default route (dst_address="::/0") redirects all outbound IPv6 traffic through the new 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. Also errors clearly if the ipv6 package is disabled on the device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentNo
confirmNo
gatewayYes
distanceNo
device_nameYes
dst_addressYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so richly: it discloses the MIKROTIK_ALLOW_WRITE=true gate, the confirm preview workflow, that duplicates are never refused (failover shape), the non-null `warning` on default-route override, and a distinct error when the ipv6 package is disabled. This is exactly the behavioral detail an agent needs before a mutating call.

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

Conciseness5/5

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

Front-loads the purpose and command, then groups parameters, then flags RISK and the write guard in their own blocks. Every sentence adds a constraint or behavior; nothing is padding.

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

Completeness5/5

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

For a guarded write tool with a 6-parameter schema, 0% schema coverage and an output schema, it covers validation rules, risk, gating, error conditions, and even references the preview's `warning` field rather than re-explaining return values. Nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate and largely does: it marks dst_address/gateway as required IPv6-validated values, explains distance as failover priority where lower wins, notes comment as optional, and describes confirm's preview-vs-apply semantics. Only device_name is left undefined, a minor gap against otherwise thorough coverage.

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

Purpose5/5

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

States a specific verb and resource ('Add a static IPv6 route'), ties it to the underlying RouterOS command, and explicitly distinguishes it from the IPv4 sibling by noting it 'Mirrors add_route on the IPv6 menu.' An agent can route IPv4 vs IPv6 intent without opening either schema.

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

Usage Guidelines4/5

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

Gives clear context: use this for IPv6 (the IPv4 counterpart is add_route) and follow the confirm=False-preview-then-confirm=True sequence. It stops short of explicitly stating when-not to use it (e.g. vs remove_ipv6_route or ipv6_routes), so it is strong but not exhaustive.

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