Skip to main content
Glama

hmc_list_vnics

Read-only

List SR-IOV-backed virtual NICs on an LPAR, returning vNIC ID, capacity, VLAN, and backing devices. Identify the system and LPAR by name or UUID.

Instructions

List vNICs (SR-IOV-backed Virtual NICs) on an LPAR via the HMC CLI.

Runs lshwres -r virtualio --rsubtype vnic --level lpar -m <system_name> --filter lpar_names=<lpar_name> on the HMC via SSH and returns one dict per vNIC with fields such as vnic_id, capacity, vswitch_name, port_vlan_id, and backing_devices.

The system and partition may be given by CLI name or by UUID; UUIDs are resolved to their CLI names via REST (falling back to an lssyscfg lookup over SSH when the REST API is unreachable) before the command runs. Use hmc_systems to find a system UUID and hmc_lpars to find an LPAR UUID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lpar_name_or_uuidYes
system_name_or_uuidYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Beyond the readOnlyHint annotation, the description discloses the exact command executed (lshwres), the transport method (SSH), the return structure (one dict per vNIC), and the UUID resolution process with REST fallback to SSH. This adds significant behavioral context, though it does not mention potential failure modes or permission requirements.

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 description is structured with a clear purpose statement, then relevant technical details, return field examples, and input resolution notes. It is slightly lengthy due to the verbose command line, but every sentence contributes useful information without redundancy.

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 read-only listing tool with an output schema, the description covers all critical aspects: what it lists, how to invoke it, how inputs are normalized, and what fields to expect. It also references companion tools for discovering identifiers, making it self-contained for an agent to use correctly.

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?

The input schema provides no parameter descriptions, but the description compensates fully: it explains that both system_name_or_uuid and lpar_name_or_uuid accept either a CLI name or a UUID, and that UUIDs are resolved to names before execution. It maps the parameters to the underlying command and points to related tools for finding valid UUID values.

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?

The description opens with 'List vNICs (SR-IOV-backed Virtual NICs) on an LPAR via the HMC CLI,' which clearly states the verb, resource, and scope. It distinguishes itself from sibling tools like hmc_add_vnic and hmc_remove_vnic by specifying a list operation on a particular resource type.

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 description provides clear context: use this tool to list vNICs on a specific LPAR. It also gives prerequisite guidance by pointing to hmc_systems and hmc_lpars for finding UUIDs, and explains the accepted input formats (name or UUID). It does not explicitly discuss alternatives or when-not-to-use, but the context is clear enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/randomparity/hmc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server