Skip to main content
Glama
alxgmpr

serial-mcp

by alxgmpr

serial_set_signals

Idempotent

Reset a microcontroller or enter bootloader mode by setting DTR and RTS hardware signals on the serial port.

Instructions

Control DTR and RTS hardware signals on the serial port.

These pins are commonly used to:

  • Reset microcontrollers (DTR on Arduino, DTR+RTS on ESP32)

  • Enter bootloader/programming mode

  • Control power to peripherals via transistor switches

  • Implement hardware flow control

Examples: - Reset Arduino: serial_set_signals(dtr=False); serial_set_signals(dtr=True) - ESP32 bootloader: serial_set_signals(dtr=False, rts=True) then serial_set_signals(dtr=True, rts=False)

Args: dtr: Set DTR signal high (True) or low (False). None leaves it unchanged. rts: Set RTS signal high (True) or low (False). None leaves it unchanged. session_id: Port name of the session. Optional if only one session is open.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dtrNo
rtsNo
session_idNo
Behavior4/5

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

Annotations already indicate idempotent and non-destructive behavior. The description adds context on typical hardware uses and example sequences, which is valuable beyond annotations.

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 description is well-structured with a main sentence followed by bulleted use cases and an example block. It is slightly longer than minimal but remains efficient and informative.

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?

No output schema exists, but the tool's return value is not critical for a signal-setting operation. The description provides enough context for typical uses and does not leave significant gaps.

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 coverage is 0%, but the description explains each parameter clearly, including the meaning of None (unchanged), and provides example usage. This fully compensates for the lack of schema descriptions.

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?

The description clearly states 'Control DTR and RTS hardware signals on the serial port,' using a specific verb+resource. It distinguishes from sibling tools like serial_get_signals by focusing on setting rather than reading signals.

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?

Provides concrete use cases (reset microcontrollers, bootloader mode) and examples, but does not explicitly state when not to use it or compare with alternatives among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alxgmpr/serial-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server