Skip to main content
Glama
alxgmpr

serial-mcp

by alxgmpr

serial_change_settings

Idempotent

Change baud rate, data bits, stop bits, or parity on an open serial connection without closing it. Useful for mid-session baud rate changes during bootloader handoff or baud detection.

Instructions

Change serial port settings on an open connection without closing it.

Useful when a device changes baud rate mid-session (e.g. bootloader hands off to OS at a different speed) or during manual baud detection.

Args: session_id: Port name of the session. Optional if only one session is open. baud_rate: New baud rate (e.g. 9600, 115200). None to keep current. data_bits: New data bits (5, 6, 7, or 8). None to keep current. stop_bits: New stop bits (1, 1.5, or 2). None to keep current. parity: New parity ("none", "even", "odd", "mark", "space"). None to keep current.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parityNo
baud_rateNo
data_bitsNo
stop_bitsNo
session_idNo
Behavior4/5

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

Beyond annotations (readOnlyHint=false, idempotentHint=true), the description adds that settings are changed without closing the connection, and that session_id is optional if only one session is open. It does not discuss failure modes or side effects, but the added behavioral details are valuable.

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?

The description is concise and well-structured: a single sentence for purpose, a sentence for usage context, and a clear parameter list. Every sentence adds value; no wasted words.

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?

For a tool with 5 parameters and no output schema, the description covers usage, parameter meanings, and a key behavioral trait (no need to close connection). Missing: return value details and potential side effects like data buffer reset, but overall good completeness.

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?

Since schema description coverage is 0%, the description fully explains each parameter: baud_rate with examples, data_bits range, stop_bits options, parity choices, and session_id optionality. This adds significant meaning beyond 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?

The description clearly states the action: 'Change serial port settings on an open connection without closing it.' This verb+resource combination uniquely distinguishes it from sibling tools like serial_open, serial_close, and serial_detect_baud.

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?

The description provides concrete use cases: 'when a device changes baud rate mid-session... or during manual baud detection.' It does not explicitly mention when to avoid using it or alternative tools, but the examples give clear context for appropriate usage.

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