Skip to main content
Glama
46nori

mcp-serial-bridge

by 46nori

connect

Establishes a serial link to a specified port, setting baud rate and line ending. If a link is already active, it closes it and establishes a new one.

Instructions

指定したシリアルポートに接続する。
port には list_ports で取得した device 名を指定する。
すでに接続中の場合は、内部で既存接続を閉じてから再接続する。

Args:
    port: 接続ポート名 (例: /dev/cu.usbserial-10, COM3)
    baudrate: 通信速度 (default: 19200)
    line_ending: コマンド末尾に付加する改行コード
        "

" (CR only, default) " " (CR+LF) " " (LF only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYes
baudrateNo
line_endingNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It transparently states that if already connected, the tool internally closes the existing connection and reconnects—a key behavioral trait. It does not cover error handling or side effects, but the disclosed behavior is valuable.

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 appropriately sized with a concise summary and an Args list. All sentences provide relevant information. Minor distraction comes from the slightly awkward formatting of line_ending options with backtick-enclosed line breaks, but overall it is well-structured.

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 connect tool, the description covers the essential behavioral context (prerequisite of list_ports, reconnection behavior) and parameter details. An output schema exists, so not explaining return values is acceptable. The description is adequate and leaves no major gaps for its simplicity.

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 the description must fully compensate. It does so by explaining each parameter: port with examples (/dev/cu.usbserial-10, COM3), baudrate as communication speed with default 19200, and line_ending as the newline code appended to commands with allowed values (CR, CR+LF, LF). This adds clear meaning beyond the bare schema titles.

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 '接続する' (connect) to a specified 'シリアルポート' (serial port), which is a specific verb and resource. It distinguishes from sibling tools list_ports and write_and_read by focusing on establishing the connection.

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 explicitly instructs to use the port name from list_ports, implying a workflow sequence. It also notes that an existing connection is closed before reconnecting, which is a usage consideration. However, it does not explicitly state when not to use the tool or mention alternatives.

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/46nori/mcp-serial-bridge'

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