Skip to main content
Glama

update_bridge_port

Idempotent

Updates VLAN settings for a MikroTik bridge port, including PVID, frame types, and ingress filtering, to control how tagged and untagged traffic is handled.

Instructions

Updates per-port VLAN settings (PVID, frame types, ingress filtering) on a bridge port.

Notes: interface: the port's interface name e.g. "ether2"; an interface can only belong to one bridge, so it uniquely identifies the bridge port pvid: VLAN ID assigned to untagged ingress traffic on this port A change is confirmed on the device before success is reported.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "interface": "<interface>"
    },
    "name": "update_bridge_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
pvidNo
deviceNo
interfaceYes
frame_typesNo
ingress_filteringNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.27.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the fact that the change is verified against the device before success is reported, and the constraint that an interface can belong to only one bridge, which explains why the key is sufficient.

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 purpose statement is front-loaded in one sentence, and the bulleted notes are short and each contributes information. Minor formatting artifacts (indentation, trailing blank content) and no wasted prose keep it near-optimal, though a single header like 'Notes:' carries little weight.

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?

For a 5-parameter mutation tool it covers the core purpose and confirms verification-before-success, which is valuable. It does not clarify partial-update behavior — whether omitted or explicitly null fields are left untouched or cleared — nor which device is targeted, both of which an agent needs before issuing the call safely.

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 description coverage is 0%, so the description carries the burden; it defines 'interface' with an example and uniqueness rationale and explains 'pvid' semantically as the VID for untagged ingress traffic. However, frame_types, ingress_filtering, and especially 'device' (which device to target when several are managed) get no explanation, and the null-default semantics for each optional field are left unexplained.

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?

The first sentence names a specific verb (Updates) and a precise resource (per-port VLAN settings on a bridge port), and enumerates the three tunable fields. It contrasts implicitly with update_bridge_vlan by saying 'per-port' rather than a VLAN entry, but never names that sibling 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?

Usage is only implied: the reader deduces this is for changing an existing bridge port's VLAN properties rather than creating/removing entries or VLAN tables. There is no explicit when-to-use, no when-not-to-use, and no routing to update_bridge_vlan or list_bridge_ports for discovery of interface names.

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