Skip to main content
Glama

enable_ipv6_firewall_rule

Enable an existing IPv6 firewall filter rule by comment, optionally narrowed by chain. Preview changes before applying; never creates new rules.

Instructions

Enable an EXISTING IPv6 firewall filter rule (/ipv6/firewall/filter set disabled=no), resolved by its comment - optionally narrowed by chain if more than one rule shares that comment. Mirrors enable_firewall_rule on the IPv6 menu - see its docstring and README's "Firewall rule toggle (by comment)" section for the full admin-creates/LLM-enables workflow.

SAFE BY DESIGN: this NEVER creates a rule.

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 - the FULL matched rule, not just its disabled field - without changing anything; call again with confirm=True to actually apply it. Errors clearly if no rule matches comment (narrowed by chain), or if more than one still does (AmbiguousResourceError) - never guesses which one to toggle. Also errors clearly (does not return an empty result) if the ipv6 package is disabled on the device - see "IPv6 write parity (v1.10)" in the README.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNo
commentYes
confirmNo
device_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.7/5.0
Behavior5/5

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

No annotations were provided, so the description carries the full burden — and it does. It discloses the write guard (MIKROTIK_ALLOW_WRITE=true required), the preview-vs-apply confirm semantics, the fact that the preview returns the FULL matched rule, and the exact error conditions (no match, AmbiguousResourceError, ipv6 package disabled). This is well beyond typical disclosure.

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

Conciseness3/5

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

Front-loaded and well organized with headers (SAFE BY DESIGN, WRITE tool), but the block is long relative to what an agent needs, and some cross-references (README sections, docstring pointer) are verbose. Every sentence does carry content, so the size is defensible but not tight.

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?

A write tool with no annotations and 0% schema coverage, but the description covers the safety gate, confirm semantics, resolution ambiguity, and failure modes thoroughly. With an output schema present, return-value explanation is not required, so nothing material is missing.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It explains that `comment` is the resolution key and `chain` only narrows it when multiple rules share a comment, and that `confirm` toggles between preview and apply. It does not explain `device_name`, but for a 4-param tool with 0% coverage this covers the risky ones well.

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 precise verb+resource (enable an EXISTING IPv6 firewall filter rule), pinpoints the underlying routeros path, and explains the resolution key (comment, optionally narrowed by chain). It explicitly distinguishes itself from siblings by naming enable_firewall_rule and disable_ipv6_firewall_rule's counterpart set.

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

Usage Guidelines5/5

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

Explicitly gives when-to-use (enable an existing rule, mirroring the admin-creates/LLM-enables workflow), how to use safely (confirm=False preview then confirm=True), and when-not (never creates a rule). It even cross-references the README section for the full workflow.

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