Skip to main content
Glama

get_interfaces

Read-onlyIdempotent

List switch ports with admin/oper status, speed, duplex, MTU, MAC, and error counters, and filter by name, status, or errors to keep ICX 7450 output small.

Instructions

List switch ports and their state: admin/oper status, speed, duplex, description, MTU, MAC and error counters (in/out errors, discards, FCS).

Use filters to keep output small on the 48-port ICX 7450.

Args: name_filter: Substring or glob matched against port name OR description, e.g. "1/1/5", "1/2/", "ethernet1/1/1", "uplink". Case-insensitive. status: "up" = only operationally up ports, "down" = only non-up ports. only_with_errors: Only ports with non-zero error/discard counters (RESTCONF only; SSH fallback lacks counters). include_counters: Add full traffic counters (octets, unicast/broadcast/ multicast packets, carrier transitions).

Returns {source, total_interfaces, returned, interfaces:[...]}.

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_interfaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoany
name_filterNo
include_countersNo
only_with_errorsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, non-destructive semantics, so the bar is lower, but the description does add real value by disclosing that only_with_errors depends on RESTCONF and that the SSH fallback lacks counters. It also warns about output volume on a 48-port switch. It stops short of describing auth/prerequisite requirements or confirming there is no pagination.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence, the sizing tip follows, and the Args block is scannable and free of filler. Every sentence maps to a decision the agent actually needs to make.

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?

All four parameters are fully explained and an output schema exists, so return values need no further prose. The remaining gap is that nothing says which device this targets or whether device selection is implicit elsewhere in the session.

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

Parameters5/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 does so: name_filter is documented as a case-insensitive substring-or-glob matched against port name OR description with concrete examples, status values are defined, only_with_errors is explained with its RESTCONF caveat, and include_counters lists the counter families added.

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 description opens with a specific verb and resource ('List switch ports and their state') and then enumerates exactly what is returned (admin/oper status, speed, duplex, MTU, MAC, error counters). That clearly separates it from siblings such as get_vlans, get_stp_status and get_poe_status by resource, even though no sibling is named 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?

The only invocation guidance is 'Use filters to keep output small on the 48-port ICX 7450', which is performance advice rather than an explicit when-to-use rule. There is no statement of when to prefer this over get_poe_status, get_running_config or run_show_command, so the agent must infer the boundary from the resource name.

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