Skip to main content
Glama

get_vlans

Read-onlyIdempotent

Lists VLANs with IDs, names, status, and tagged/untagged port membership; filter by VLAN ID or port to see which VLANs exist or where a port belongs.

Instructions

List VLANs with ID, name, status and port membership (tagged/untagged).

Use to answer "which VLANs exist", "what VLANs is port 1/1/12 in", or "which ports carry VLAN 30 tagged". FastIron port names look like "1/1/12" (unit/module/port); LAGs look like "lg1".

Args: vlan_id: Only this VLAN. port: Only VLANs containing this port (substring/glob, e.g. "1/1/12"). include_members: Set False for a compact list of VLAN IDs and names only.

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": "get_vlans"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNo
vlan_idNo
include_membersNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new context: the exact fields returned, the port naming convention ('1/1/12' unit/module/port, LAGs as 'lg1'), and the compact-mode behavior of include_members.

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 example use cases are front-loaded before the Args block, and every line carries information. The Args section is slightly redundant with the schema titles but remains compact and readable.

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-value explanation is not required, and the description still sketches the returned fields. Combined with full parameter coverage and the port-name format, an agent has what it needs; only edge-case filter interactions are unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and largely succeeds: vlan_id is an exact-match filter, port is a substring/glob filter with a documented naming format, and include_members=False yields a compact ID/name list. It does not address what happens when vlan_id and port are combined or the default of include_members.

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 VLANs') and enumerates the returned fields (ID, name, status, tagged/untagged membership). The example questions ('which VLANs exist', 'what VLANs is port 1/1/12 in') make the scope unmistakable and distinguish it from interface- or config-oriented siblings.

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?

The three example questions give clear positive triggers for calling the tool, and the parameter notes imply the filtering variants. It stops short of naming an alternative (e.g. run_show_command) or stating when this tool is the wrong choice.

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