Skip to main content
Glama

List Routers

list_routers
Read-onlyIdempotent

Discover configured routers and their IDs, hosts, ports, TLS status, tags, ROS versions, and default status from the local registry; filter by tags to target other tools without calling RouterOS.

Instructions

List the routers configured in the registry (routers.yaml): id, host, port, TLS status, tags, ROS version, and which is the default. Read-only reflection of local config — no RouterOS API call, no credentials in the response. rosVersion is what routers.yaml states and may lag a router upgrade. Once get_system_status or check_router_health has reached a router, rosVersionSeen and rosVersionSeenAt show what it reported to this server (kept in memory, so empty after a restart or a host change); ask get_system_status for the live version. Use it to discover valid routerId values and tags for targeting other tools (including bulk_read and bulk_execute).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_routers"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOnly return routers having any of these tags (e.g. ["edge", "prod"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A4.4/5.0
Behavior4/5

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

Well beyond the annotations, it discloses that no RouterOS API call or credentials are involved, that rosVersion comes from config and may lag an upgrade, and that rosVersionSeen is in-memory and therefore empty after a restart or host change. The only remaining gap is what the response looks like structurally, which the annotations' readOnly/idempotent hints don't cover.

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?

Purpose and scope are front-loaded in the first sentence, then caveats about staleness follow in logical order. Some of the rosVersion/rosVersionSeen explanation is dense and could be tightened, but nothing is redundant.

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?

With no output schema, the description carries the burden of describing the return shape and does so by naming each field plus the seen-version fields. For a read-only one-parameter discovery tool, an agent has everything needed to call it and interpret the result.

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 100% and the single optional tags parameter is fully documented in the schema, so the baseline is 3. The description only implies that these same tags are the ones other tools target, adding modest context rather than new semantics.

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 (list routers configured in the routers.yaml registry) and enumerates the returned fields: id, host, port, TLS status, tags, ROS version, default flag. It also distinguishes itself from the many list_* RouterOS-entity siblings by characterizing the source as local config reflection rather than a live device query.

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?

Gives an explicit use case — discovering valid routerId values and tags for targeting other tools, naming bulk_read and bulk_execute — and directs the agent to get_system_status when a live ROS version is needed instead of the stale config value. Both the when-to-use and the alternative routing are stated outright.

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