Skip to main content
Glama

serial_connect

Open a serial connection to an STM32 board and keep it active for sending, reading, and disconnecting serial data across tool calls.

Instructions

Open a serial connection to an STM32 board.

Opens the specified serial port and stores the connection for use with serial_send, serial_read, and serial_disconnect. The connection persists across tool calls until explicitly disconnected.

Args: port: Serial port path (e.g., "/dev/cu.usbmodem1234"). Use serial_list_ports to find available ports. baudrate: Baud rate (default 115200).

Returns: Connection status message. The connection_id for subsequent calls is the port path (e.g., "/dev/cu.usbmodem1234") — the same value you passed as the port argument.

Input Schema

NameRequiredDescriptionDefault
portYes
baudrateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load, and it discloses the key non-obvious behavior: the connection persists across tool calls until explicitly disconnected, and the connection_id is the port path itself. It omits failure modes such as a busy port, permission/dialout requirements, and whether multiple simultaneous connections are supported, which is a meaningful gap for a resource-acquiring tool.

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 purpose, then structured Args/Returns sections with zero filler prose. The only slack is mild repetition of the port path in the Returns block ("the same value you passed as the port argument"), though that redundancy aids comprehension rather than hurting it.

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 an output schema present, the description needn't detail return payloads, and it still adds the critical fact that connection_id equals the port path. Persistence semantics and sibling relationships are covered. Missing only edge-case behavior (port in use, permission errors) that an agent would benefit from knowing before calling.

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?

Schema description coverage is 0%, so this description must compensate, and it does: port is explained as a path with a concrete example ("/dev/cu.usbmodem1234") plus the tool to discover valid values, and baudrate is explained with its default of 115200. Both parameters gain meaning they do not have in the bare schema.

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 ("Open a serial connection to an STM32 board") and immediately distinguishes itself from the sibling data-plane tools (serial_send, serial_read, serial_disconnect). An agent can tell this is the setup step in a four-tool lifecycle without opening any schema.

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?

Explicitly says to use serial_list_ports to find available ports, which routes the agent to the correct prerequisite sibling. It also implies the ordering (connect before send/read) via "for use with serial_send, serial_read". No explicit exclusion or "do not use when" statement, but the connect step has no alternative in this sibling set, so the gap is minor.

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