Skip to main content
Glama

Device Ports Get

device_ports_get
Read-onlyIdempotent

Get port information for a network device by hostname and interface name, providing details for monitoring and troubleshooting.

Instructions

Get port info for a device by interface name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ifnameYesInterface name
hostnameYesDevice hostname.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint true, idempotentHint true, and destructiveHint false, so the safety profile is fully covered. The description adds no behavioral detail beyond the annotations, but it also does not contradict them; it is minimally acceptable given the annotation coverage.

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?

A single, front-loaded sentence that states the operation, the resource, and the lookup key with no filler or repetition. Every word earns its place.

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?

For a simple two-parameter read-only getter, the description is complete: the parameters are fully documented in the schema, the annotations cover safety, and an output schema exists to define return values. Nothing essential is missing.

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 100%, so the schema already fully documents hostname and ifname. The description reinforces that ifname is the interface name, but it does not add meaning beyond the schema—matching the baseline for high schema coverage.

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 uses a specific verb ('Get'), a clear resource ('port info'), and a precise scope ('for a device by interface name'). It is unambiguous on its own but does not explicitly differentiate itself from sibling tools like device_ports or port_get.

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 phrase 'by interface name' implies the tool is used when you have both a device hostname and an interface name, but it gives no explicit when-to-use or when-not-to-use guidance and names no alternatives. The usage context is present but only implied.

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