Skip to main content
Glama

setup_bridge_with_wifi_subnet

Bridge LAN and Wi-Fi ports on a MikroTik router, placing Wi-Fi in its own subnet with optional DHCP and VLAN isolation.

Instructions

Put all LAN ports and Wi-Fi in a bridge, with Wi-Fi in its own subnet.

wifi_gateway (REQUIRED, ask the user, never invent): router IP + mask for the Wi-Fi subnet, as '192.168.20.1/24' or '192.168.20.1 255.255.255.0'. lan_address: only if the user wants to set/change the LAN gateway (same formats). If omitted, the current LAN address is kept (shown in the dry run; confirm it). dhcp_range: optional pool 'first-last' (e.g. '192.168.20.100-192.168.20.200'). Default: the usable range after the first 9 addresses. Confirm with the user. mode='vlan' (default): ONE bridge with VLAN filtering. LAN ports untagged on VLAN 1, Wi-Fi ports on wifi_vlan_id, router IP on a VLAN interface. Caution: on many non-CRS3xx models this disables hardware offload (CPU switching). mode='separate_bridge': LAN ports in bridge, Wi-Fi in wifi_bridge. wan_interface: excluded from bridging (default: members of the WAN interface list). lan_ports / wifi_ports: default all Ethernet (minus WAN) / all Wi-Fi interfaces. isolate_wifi_from_lan: block traffic between Wi-Fi and LAN; Wi-Fi gets internet, DNS and DHCP only (no router management from Wi-Fi).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dhcpNo
modeNovlan
nameNorouter
bridgeNobridge
dry_runNo
lan_portsNo
dhcp_rangeNo
wifi_portsNo
lan_addressNo
wifi_bridgeNobridge-wifi
wifi_gatewayYes
wifi_vlan_idNo
wan_interfaceNo
rollback_minutesNo
isolate_wifi_from_lanNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/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 well: it discloses the hardware-offload caveat for VLAN mode on non-CRS3xx models, the traffic-blocking effect of isolate_wifi_from_lan, and the dry-run confirmation flow. It omits any explanation of rollback_minutes and its 5-minute safety window, which is a notable behavioral gap for a disruptive mutation.

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 parameter-by-parameter bullet structure is front-loaded and dense; each line carries format, default, or effect information rather than filler. It is long but nearly every sentence earns its place.

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

Completeness4/5

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

For a 15-parameter disruptive network mutation with no annotations, the description covers most decision-relevant behavior and an output schema exists so returns need no explanation. The main omission is the rollback_minutes safety mechanism and the exact semantics of dry_run, which an agent would want spelled out.

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 0%, so the description must compensate, and it does explain formats and semantics for wifi_gateway, lan_address, dhcp_range, mode, wan_interface, lan_ports, wifi_ports and isolate_wifi_from_lan. But roughly half the parameters (dhcp, name, bridge, dry_run, wifi_bridge, wifi_vlan_id, rollback_minutes) get no meaning at all, so the coverage is only partial.

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 with scope: bridge all LAN ports and Wi-Fi, with Wi-Fi on its own subnet. This is clearly distinguishable from siblings like configure_wifi or firewall_baseline without opening any 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 strong operational guidance: wifi_gateway is REQUIRED and must be asked of the user, lan_address only when changing the LAN gateway, and defaults must be confirmed with the user. It does not, however, name a sibling alternative or state when this tool should not be used.

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