Skip to main content
Glama

disable_firewall_rule

Disable an existing MikroTik firewall filter rule by its comment, optionally narrowed by chain. Requires write access and confirmation to apply.

Instructions

Disable an EXISTING firewall filter rule (/ip/firewall/filter set disabled=yes), resolved by its comment - optionally narrowed by chain if more than one rule shares that comment.

Same "never creates a rule" guarantee and comment-based resolution as enable_firewall_rule - see its docstring and README's "Firewall rule toggle (by comment)" section.

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 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).

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.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so thoroughly. It discloses that this is a WRITE tool, that it never creates a rule, that it is guarded by an environment variable, that it supports a preview/apply workflow, and that it can fail on missing or ambiguous matches.

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 most important details, the exact action and resolution mechanism, are front-loaded, and the write guard/confirm workflow follows logically. It is somewhat long and defers to an external README/docstring for part of the guarantee, but there is little wasted text.

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?

Given the presence of an output schema, the description need not explain return values, and it covers the critical invocation context: write guard, confirmation flow, resolution semantics, and error cases. It is complete enough for an agent to call the tool correctly.

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, and it clearly explains `comment` (resolution key), `chain` (optional narrowing), and `confirm` (default false preview, true apply). It does not explain `device_name`, which is a required parameter and therefore leaves one meaningful gap.

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?

The description uses a specific verb and resource: 'Disable an EXISTING firewall filter rule' with the exact RouterOS command path. It distinguishes itself from sibling tools like `enable_firewall_rule` by the opposite action and the shared comment-based resolution model.

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?

It explicitly states the required server flag MIKROTIK_ALLOW_WRITE=true and gives a two-step workflow: call with confirm=False for a preview, then confirm=True to apply. It also documents failure conditions (`AmbiguousResourceError` when multiple rules match), leaving no ambiguity about when and how to invoke it.

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