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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark this as destructive, and the description adds meaningful behavioral context by calling out post-upload reset/re-enumeration windows. It stops short of describing how those windows are handled or what side effects the readiness wait has, but it does explain the main non-obvious behavior.

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?

A single tightly worded sentence with no filler; the core action and the distinguishing timing behavior are front-loaded. Every phrase adds 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?

For a complex 11-parameter tool with an output schema and rich parameter descriptions, the description orients the agent to the compound workflow and its most important hidden pitfall (reset/re-enumeration). It does not explicitly mention safety preflight or core auto-install, but those are covered by parameter semantics and annotations.

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 description coverage is 91%, so the schema already documents nearly every parameter. The tool description adds no parameter-level detail, which is acceptable under the high-coverage baseline of 3.

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 states a specific verb ('Upload'), a concrete resource ('a sketch'), and a distinguishing outcome ('wait for a serial readiness pattern'). It also names the unique reset/re-enumeration handling, which separates it from siblings like upload_sketch and serial_expect.

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 composite behavior — upload plus wait for readiness — clearly implies when to use it, and the sibling list reinforces the distinction from plain upload_sketch or serial_expect. However, the description never explicitly says 'use this instead of X when Y', so an agent must infer the selection rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.