Skip to main content
Glama

get_devices

Read-onlyIdempotent

Lists PCI and USB devices, problems first, with name, maker, location, driver and module version; flags missing drivers so you can diagnose nonworking hardware. Read-only.

Instructions

Lists the machine's PCI and USB devices from sysfs, the ones with a problem first: each device's name (from pci.ids where the system has it), its kind, its maker, where it sits, and the kernel driver bound to it with its module's version; a device of a kind that needs a driver and has none is flagged. Use it when a device does not work or to see which driver runs it. It only reads.

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

Input Schema

NameRequiredDescriptionDefault
filterNoOnly devices whose name, kind, maker or driver contains this text.
usb_historyNoEvery USB device this PC has known, connected or not, the last connected first (in the manner of USBDeview), with when each was first and last connected and last removed.
problems_onlyNoOnly the devices with a problem or no driver.
include_hiddenNoAlso the system devices Device Manager hides.
include_not_connectedNoAlso the devices known but not connected now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, yet the description still adds real value: the data source (sysfs), the ordering (problem devices first), the pci.ids name fallback, the inclusion of the bound driver's module version, and the flagging of driverless devices. 'It only reads' merely restates readOnlyHint, and the alternative historical-USB mode is never disclosed, which keeps it below a 5.

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?

Three sentences, front-loaded with the verb and resource, with no filler. The first sentence is a dense colon-and-semicolon chain that takes effort to parse, which is the only structural weakness.

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 no output schema, the description carries the burden of describing returned fields and does so thoroughly (name, kind, maker, location, driver, module version, problem flag). The one gap is that the usb_history mode, which returns a fundamentally different historical record set, is left entirely to the schema.

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 all five parameters (filter, usb_history, problems_only, include_hidden, include_not_connected) are already documented in the schema. The description implies the problems-first ordering and hidden/not-connected concepts only obliquely, adding little meaning beyond the schema; the baseline 3 applies.

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?

States a specific verb and resource ('Lists the machine's PCI and USB devices from sysfs') plus the content of each record. It is clear what the tool returns, but it does not distinguish itself from hardware-oriented siblings like get_gpus, get_disks or get_hardware, so an agent must infer the boundary.

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 explicit triggering conditions: 'Use it when a device does not work or to see which driver runs it.' That is a clear context for selection, though it names no alternative tool for the overlapping hardware-report cases.

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