Skip to main content
Glama
hardware-mcp

arduino-mcp-server

by hardware-mcp

Upload And Wait Ready

upload_and_wait_ready
Destructive

Upload an Arduino sketch and monitor serial output for a specified pattern, handling post-upload reset and re-enumeration automatically.

Instructions

Upload a sketch and wait for a serial readiness pattern, handling post-upload reset/re-enumeration windows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sketchPathYesPath to sketch folder or .ino file.
portYesSerial port path, e.g. COM6 or /dev/ttyACM0.
fqbnNoOptional board FQBN when auto-detect is insufficient.
verifyNoVerify uploaded binary when supported.
autoInstallCoreNoIf true (default), auto-install missing board core when fqbn is provided.
readyPatternNoOptional serial text pattern to wait for after upload.
readyTimeoutMsNoHow long to wait for readyPattern.
readyBaudRateNoBaud rate for readiness check. Default 115200.
readyCaseSensitiveNoIf true, readiness matching is case-sensitive.
unsafeSkipPreflightNoIf true, bypasses safety_preflight checks. Use only when user explicitly accepts risk.
safetyContextNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
statusNo
commandNo
dataNo
rawNo
rawTailNo
stageNo
errorCodeNo
retryableNo
reasonCodesNo
nextActionsNo
noteNo
errorNo
Behavior4/5

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

Annotations indicate destructive hint (true). The description adds context about handling post-upload reset and re-enumeration windows, which is valuable beyond the annotation. However, it does not mention safety preflight or other behavioral details.

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 a single, clear sentence with no redundant words, efficiently conveying the core functionality.

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?

Given the tool's complexity (11 params, destructive, output schema exists), the description covers the essential upload-wait behavior and reset handling. It does not mention error conditions or prerequisites, but output schema likely covers return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 91%, so parameters are already well-described. The description does not add meaning beyond the schema's own descriptions, meeting the baseline expectation.

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 uploads a sketch and waits for a serial readiness pattern, highlighting its unique combination of actions. This distinguishes it from siblings like upload_sketch (upload only) and serial_expect (wait only).

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 usage when a readiness pattern is needed after upload, but does not explicitly state when to use alternatives like upload_sketch without waiting. No exclusions or when-not scenarios are provided.

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/hardware-mcp/arduino-mcp-server'

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