Skip to main content
Glama
46nori

mcp-serial-bridge

by 46nori

write_and_read

Send a command to a connected serial port and receive the response, with optional waiting for a specific prompt and configurable timeout.

Instructions

シリアルポートにコマンドを送信し、応答を受信して返す。 事前に connect を実行しておくこと。 行末には connect で設定した line_ending が自動付加される。 wait_for にプロンプト文字列(例: "> ")を指定すると、 その文字列が受信データに現れるまで待機する。 送受信データはすべてログファイルに記録される。

Args: command: 送信する文字列 wait_for: この文字列が出現するまで受信を待機する(省略可) timeout: 最大待機時間(秒)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
timeoutNo
wait_forNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that line_ending is auto-appended, wait_for causes waiting for a prompt string, and all data is logged. These behavioral details go beyond the schema and are valuable for the agent.

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: a clear main action, then prerequisites, behavioral notes, and an Args list. It is not overly verbose and every part adds necessary information.

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?

The description, combined with the presence of an output schema, provides sufficient context for effective use. It covers prerequisites, behavior, and side effects like logging, though it leaves return value format to the output schema.

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?

The input schema has 0% description coverage, but the description's Args section fully explains each parameter: command, wait_for, and timeout, including optionality and meaning. This completely compensates for the schema gap.

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 tool sends a command to a serial port, receives a response, and returns it. It also specifies the prerequisite of connecting, distinguishing it from sibling tools like list_ports and connect.

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 execute connect beforehand, providing clear sequential context. It does not explicitly name alternatives or exclusions, but the purpose and sibling names make the appropriate usage scenario evident.

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