Skip to main content
Glama
brovk2008

STM32Cube-MCP

by brovk2008

stm32_read_serial

Capture serial output from a target UART port to monitor printf logs or RTOS telemetry. Specify port, baud rate, timeout, and max bytes to read.

Instructions

Listens and captures incoming serial output from target UART (e.g. printf output or RTOS telemetry).

Args: port: Port name (e.g. 'COM3' or '/dev/ttyUSB0'). baudrate: Baud rate (default: 115200). timeout_sec: Listening window in seconds. max_bytes: Maximum bytes to read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYes
baudrateNo
max_bytesNo
timeout_secNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are present, so the description carries the full behavioral burden. It discloses that the tool listens/captures and hints at a timeout/max_bytes window, but it does not say whether it blocks, requires exclusive port access, consumes data from the UART buffer, or how failures are surfaced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One clear purpose sentence followed by a tight Args list. Every line earns its place, and the most important information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity read tool with an output schema, the description covers purpose and parameters adequately. It is incomplete regarding when to prefer this over sibling read/write/list tools and lacks behavioral caveats, which is more impactful because there are no annotations.

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?

Schema description coverage is 0%, so the Args section is the only source of parameter meaning. It provides useful semantics for all four parameters, including port examples and default values for baudrate, timeout, and max_bytes, going beyond the bare schema.

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 clear verb+resource ('listens and captures incoming serial output from target UART') and gives example content (printf output or RTOS telemetry). It does not explicitly differentiate from sibling tools like stm32_write_serial or stm32_list_serial_ports, but the read direction is unmistakable.

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?

The description implies the use case via 'printf output or RTOS telemetry', so an agent can infer when to call it. However, it does not explicitly state when not to use it or mention alternatives such as stm32_write_serial or stm32_list_serial_ports.

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