Skip to main content
Glama
hardware-mcp

arduino-mcp-server

by hardware-mcp

Upload Sketch

upload_sketch
DestructiveIdempotent

Upload a compiled Arduino sketch to a connected board via serial port. Supports optional board verification, core installation, and electrical safety checks.

Instructions

Upload a compiled sketch to a connected board/port.

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.
unsafeSkipPreflightNoIf true, bypasses safety_preflight checks. Use only when user explicitly accepts risk.
safetyContextNoOptional electrical context for preflight checks.

Output Schema

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

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

While annotations indicate destructive and idempotent behavior, the description adds no further behavioral context. It does not mention that uploading overwrites the board's firmware, may cause a reset, or that safety checks (like preflight) are bypassed by unsafeSkipPreflight. With destructiveHint already present, the description should add context beyond the annotation.

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 a single short sentence with no waste. It is front-loaded and efficient. However, it could be slightly expanded without losing conciseness (e.g., adding a brief note about prerequisites). Still, it earns a 4 for avoiding unnecessary content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, nested objects, safety implications), the description is too minimal. It does not explain the tool's role in the workflow (e.g., after compilation), when to use unsafeSkipPreflight, or how safetyContext interacts. The output schema exists, so return values are covered, but the description still lacks essential context for correct invocation.

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 100% (all parameters have descriptions). The description adds no additional meaning beyond what the schema provides. For example, it does not explain that safetyContext is used for preflight checks or that autoInstallCore automates core installation. Baseline 3 is appropriate.

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 (upload), the resource (compiled sketch), and the target (connected board/port). It distinguishes from sibling tools like compile_sketch (compilation vs upload) and read_serial_snapshot (different purpose).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool vs alternatives, no prerequisites, and no exclusion criteria. For example, it does not mention that compile_sketch should be run first, or that safety_preflight is recommended.

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