Skip to main content
Glama

serial_write

Write data to the open serial port, with UTF-8, hex, or base64 encoding options for text and binary UART frames.

Instructions

Write data to the open serial port. Use hex/base64 for binary UART frames (e.g. Ratchet Phase 2.7).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesPayload to send
encodingNoEncoding of data parameterutf8
Behavior3/5

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

With no annotations, the description carries the full burden. It adds useful context: the port must be open and binary data should be hex/base64 encoded. However, it does not disclose failure modes, blocking behavior, or what happens if the port is closed, which is a significant gap for a mutation tool.

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?

Two front-loaded sentences with no filler. The first sentence states the main purpose, and the second provides a practical encoding tip. Every word earns its place.

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 simple two-parameter tool with no output schema, the description covers purpose, prerequisite (open port), and encoding guidance. It does not explain return values or error conditions, but the tool is simple enough that this omission is not critical.

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?

The schema fully describes both parameters, so baseline is 3. The description adds value by advising hex/base64 for binary UART frames, directly illuminating the 'encoding' parameter's intended usage beyond the enum list.

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 (write) and resource (open serial port), distinguishing it from siblings like serial_read and serial_close. The purpose is unambiguous and immediately understandable.

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 need for an open serial port and advises using hex/base64 for binary data, but it does not explicitly name alternatives or state when not to use this tool. Context is clear enough, but explicit exclusions are missing.

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/JShort-bufr/arduino-mcp'

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