Skip to main content
Glama

disable_nat_rule

Disable an existing MikroTik firewall NAT rule by comment, optionally narrowed by chain, with a preview before applying.

Instructions

Disable an EXISTING firewall NAT rule (/ip/firewall/nat set disabled=yes), resolved by its comment - optionally narrowed by chain (srcnat/dstnat).

Same "never creates a rule" guarantee and comment-based resolution as enable_nat_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 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 at all, the description carries the full burden and does so well: it discloses the write guard, the dry-run/confirm flow, the safety guarantee ('never creates a rule'), and the specific failure mode (`AmbiguousResourceError`) when multiple rules match.

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?

Front-loads the purpose, then the guard, then the invocation flow; each sentence carries distinct information. It is slightly longer than strictly necessary due to the back-reference to `enable_nat_rule`, but nothing is filler.

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?

An output schema exists, so return-value explanation is unnecessary, and the description covers the remaining gaps: guard condition, preview/apply flow, resolution rules, and error cases. An agent has everything needed to call it 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; it explains `comment` (the resolution key), `chain` (srcnat/dstnat narrowing), and `confirm` (default false, preview vs apply). It only leaves `device_name` implicit, which is a minor gap for a 4-parameter tool.

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 ('Disable an EXISTING firewall NAT rule'), names the underlying operation (`/ip/firewall/nat set disabled=yes`), and specifies resolution semantics (by `comment`, optionally narrowed by `chain`). It also distinguishes itself from the sibling `enable_nat_rule` it is paired with.

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 explains the two-step invocation pattern (confirm=False for preview, confirm=True to apply) and the enabling precondition (MIKROTIK_ALLOW_WRITE=true). It also states when errors occur (no match, ambiguous match), which tells the agent what input guarantees are needed.

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