Skip to main content
Glama

USB Hub List

uhubctl_list
Read-onlyIdempotent

Lists USB hubs and per-port device attachments in read-only mode, including power-switching support and VID:PID data, so you can verify hub locations before power-cycling ports.

Instructions

List every USB hub + per-port device attachment as seen by uhubctl. Read-only.

Each hub has its location, descriptor, whether it supports per-port power switching, and its populated ports with the attached VID:PID; check it before a power-cycle. location is uhubctl notation (1-1.3) on Linux and macOS. On Windows the backend is VirtualHere's vhfilter (uhubctl cannot switch port power there) and a location is the hub's PnP device path, e.g. USB\VID_0BDA&PID_0411\6&28cf390b&0&2. Pass either form to the power tools unchanged.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, yet the description adds genuinely new behavioral facts: the backend differs by OS, on Windows it goes through VirtualHere's `vhfilter`, and uhubctl cannot switch port power there. It also discloses the exact `location` string format callers must round-trip into other tools.

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 read-only, check-first framing is front-loaded and each sentence carries distinct information. The long Windows PnP path example is the only heavy element, but it is concrete and prevents format errors, so it largely earns its space.

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?

An output schema exists, so the description need not document return values, and it still sketches the per-hub fields an agent will see. Platform caveats, the backend note, and the location-format contract cover everything needed to call this list tool and use its output correctly.

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?

The tool takes zero parameters, so the baseline is 4; the description instead spends its effort defining the `location` identifier format that other tools consume (`1-1.3` on Linux/macOS versus a Windows PnP device path), which is useful context even though it is technically output data.

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 every USB hub + per-port device attachment as seen by `uhubctl`") and immediately scopes the output (hubs with location, descriptor, power-switch support, populated ports with VID:PID). This makes it trivially distinguishable from the mutation siblings `uhubctl_power` and `uhubctl_cycle`.

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?

Gives a concrete usage context: "check it before a power-cycle" and "Pass either form to the power tools unchanged," which links it to the power/cycle siblings. It stops short of naming those tools explicitly or stating when this tool is unnecessary, so it sits just below the fully explicit tier.

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