Skip to main content
Glama

interface_monitor

Monitor the link and optical status of a specified Ethernet interface on a MikroTik device, returning speed, duplex, auto-negotiation, and SFP module diagnostics when available.

Instructions

Link/optical status of one ethernet interface (/interface/ethernet/monitor once=yes) - status (link-ok/ no-link), rate, full-duplex (coerced to bool | None - see formatting.coerce_ros_bool), auto-negotiation (RouterOS's raw value - a "done"/"incomplete"-style state, not a strict boolean, so left as-is), plus SFP/DDM optics fields WHEN the port has an SFP cage and a module is present: sfp-temperature, sfp-supply-voltage, sfp-tx-power, sfp-rx-power, sfp-tx-bias-current, sfp-vendor-name, sfp-vendor-part-number, sfp-wavelength, sfp-module-present (also coerced to bool | None).

A plain copper port (the vast majority) has NONE of the sfp-* fields in RouterOS's reply at all - each is only added to the result when the device's reply actually carries it (.get/in checks throughout, nothing invented). The reference hardware this project was verified against (a mANTBox) has no SFP cage, so the command path itself is confirmed but the DDM field VALUES are not yet verified against real SFP optics - see ROADMAP.md.

interface is validated for shape (validate_interface_name) before it is ever sent to the device - existence isn't checked separately, so a typo'd/unknown interface name simply produces whatever error RouterOS itself returns. Returns an empty dict if the device answers with nothing (same "once" convention as interface_traffic/poe_status/lte_status).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
interfaceYes
device_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.1/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 burden and does so thoroughly: it discloses field coercion (full-duplex / sfp-module-present to bool | None), that auto-negotiation is left as RouterOS's raw non-boolean state, that sfp-* fields appear only when the device reply carries them (nothing invented), that an empty dict is returned when the device answers nothing, and that DDM values are unverified against real optics.

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 and primary field list are front-loaded, and the density is justified by the number of returned fields and their coercion quirks. It is still on the verbose side (ROADMAP.md and mANTBox asides, heavy backtick/parenthetical nesting) but no sentence is purely filler.

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?

An output schema exists, so return values need not be spelled out, yet the description still covers error behavior, the empty-dict case and validation semantics. The only real gap is `device_name` semantics and any guidance on which device to target, which is minor for a read-only status 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 description coverage is 0% for both parameters. The description compensates for `interface` by explaining it is shape-validated via validate_interface_name and that existence is not checked (typos surface as raw RouterOS errors), but it says nothing at all about `device_name`, leaving half the required parameters undocumented in both schema and text.

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 opens with a specific verb+resource ('Link/optical status of one ethernet interface') and enumerates the exact fields returned, so an agent can immediately distinguish it from siblings like interface_traffic, poe_status or interfaces. The scope (single interface, status read) is unambiguous.

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 infers this is a one-shot status read for a specific interface, and the reference to the 'same once convention as interface_traffic/poe_status/lte_status' hints at the family it belongs to. There is no explicit statement of when to prefer this over alternatives (e.g. interface_traffic for throughput, interfaces for enumeration) and no exclusions.

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