Skip to main content
Glama

Upload And Wait Ready

upload_and_wait_ready
Destructive

Upload a sketch and wait for a serial readiness pattern, handling post-upload reset and re-enumeration windows so the board is ready before proceeding.

Instructions

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

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
rawNo
dataNo
noteNo
errorNo
stageNo
statusNo
commandNo
rawTailNo
errorCodeNo
retryableNo
nextActionsNo
reasonCodesNo
Install Server

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.

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

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