Skip to main content
Glama

serial_list_ports

Lists available serial ports with device paths, descriptions, VID:PID, and serial numbers, marking ST-Link VCP ports to help identify the right port for STM32 serial communication.

Instructions

List available serial ports.

Shows all serial ports on this machine with device path, description, VID:PID, and serial number. ST-Link VCP ports are marked with [ST-Link VCP].

Returns: List of serial ports with details.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it discloses that enumeration covers 'this machine' and that ST-Link VCP ports get a marker, which is genuine behavioral detail. It does not state that the call is non-invasive (does not open or lock ports), nor whether enumeration can be slow or miss virtual/hot-plugged ports.

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?

Front-loaded with the core action, and the field list (path, description, VID:PID, serial number) is useful pre-call context. The trailing 'Returns: List of serial ports with details' sentence is largely redundant given an output schema exists, so it is not perfectly lean.

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?

An output schema already documents the return shape, so the description need not have restated it; what it does provide — the machine-local scope and the [ST-Link VCP] marker convention — is exactly the kind of thing the schema cannot express. Nothing essential for a zero-arg enumeration tool is missing.

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 there is no parameter semantics to explain — the baseline of 4 applies. The description correctly adds no parameter chatter that would be irrelevant here.

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 / serial ports) plus the scope: ports on this machine, not remote ones. It also differentiates from the nearby stm32_list_probes by clarifying that ST-Link VCP ports are annotated in the output rather than being a separate probe enumeration.

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?

Usage is only implied: the natural inference is 'call this before serial_connect to learn the device path', but the description never says that or names serial_connect as the follow-up. No prerequisites, exclusions, or note about when port enumeration would be empty or unhelpful.

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