Skip to main content
Glama

Get Interfaces for a Device

get_interfaces_for_device
Read-only

Lists a device's ports with names, link/protocol state, MAC, IPv4 address, and attached remote port so you can inspect interfaces and connectivity in Packet Tracer.

Instructions

List a device's ports: name, IPC class, link/protocol state, MAC, IPv4 address/mask (host ports), and the remote port name if a cable is attached.

Examples:

  • "What interfaces does R1 have?"

  • "Which ports on the switch are connected?"

  • "Show PC0's IP address"

Input Schema

NameRequiredDescriptionDefault
nameYesDevice display name as shown in Packet Tracer (e.g. 'Router0', 'PC1')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

readOnlyHint=true already declares the safe-read profile, so the description's added value is the field inventory, including the conditional notes that IPv4 is a host-port field and the remote port name appears only when a cable is attached. It says nothing about failure behavior for unknown device names or about how unconnected ports are represented.

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 field inventory is front-loaded in the first sentence and the examples are each a single line, so nothing is buried. The field enumeration is dense but every item maps to real returned data rather than 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?

With an output schema present, the description need not explain return values, and one fully documented parameter is the entire input surface. What remains unstated is behavior on a nonexistent device or empty port list, a minor but real gap for an agent planning recovery.

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% with an explicit description of 'name' as the Packet Tracer display name, so the schema carries the parameter semantics. The examples reinforce the naming convention (R1, PC0) but the description adds no details beyond what the schema states.

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?

Specific verb 'List' applied to a precise resource ('a device's ports') with the returned fields enumerated. It is clearly distinguishable from siblings such as get_all_links (cables) and get_device_configuration (config), which matters in a 45-tool namespace.

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?

Three natural-language example requests ('What interfaces does R1 have?', 'Which ports on the switch are connected?', 'Show PC0's IP address') make the intended call contexts concrete. It stops short of naming alternatives or stating when not to use it versus get_all_links or get_device_configuration.

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