Skip to main content
Glama

Enable or disable a RouterOS item

mikrotik_set_enabled

Enable or disable RouterOS interfaces, firewall rules, routes, users, or other items by ID or equality filter. Specify the menu path and desired enabled state.

Instructions

Enable or disable an interface, firewall rule, route, user, etc. Identify it by id or a where filter.

Input Schema

NameRequiredDescriptionDefault
idNo
pathYesRouterOS menu path, e.g. "/ip/address", "/interface/bridge/port" or "ip firewall filter".
whereNoEquality filters, e.g. {"type": "ether", "disabled": false}.
deviceNoName of the configured device. Defaults to the first device (see mikrotik_list_devices).
enabledYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the write/idempotency/open-world profile, and the description usefully adds the range of item types affected. However, for a mutation tool it omits the key behavioral question: what happens when a `where` filter matches zero or multiple items (bulk toggle vs error), and whether the change is immediate and persistent.

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?

Two short sentences with the action front-loaded and the targeting mechanism second; no filler or redundancy.

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

Completeness3/5

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

With five parameters including a nested free-form `where` object, no output schema, and destructive-adjacent consequences (disabling a firewall rule or interface), the definition should say more about match cardinality and failure modes. As written it is callable but leaves real ambiguity for a mutation tool.

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 coverage is 60%, with `path`, `where`, and `device` documented inline; the description only adds the framing that `id` and `where` are alternative identification mechanisms. It does not clarify whether they are mutually exclusive, what happens if both are supplied, or why `path` is required alongside `id`.

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?

States a specific verb pair (enable/disable) and the resource family it acts on (interface, firewall rule, route, user), so the action is unambiguous. It is implicitly distinct from the generic sibling mikrotik_set, but the description never names that sibling or states the contrast explicitly.

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

Usage Guidelines3/5

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

The description gives targeting guidance (identify by `id` or a `where` filter), which is useful, but it never says when to prefer this tool over mikrotik_set or mikrotik_run_command, nor when a `where` filter is appropriate versus a single `id`. Usage is implied rather than stated.

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