Skip to main content
Glama
niradler

Arduino MCP Server

by niradler

Upload Sketch to Board

upload_sketch
Destructive

Upload a compiled sketch to an Arduino board, optionally using previously saved board settings to simplify the process.

Instructions

Upload a compiled sketch to an Arduino board.

TIP: If you used arduino-cli board attach on this sketch, FQBN and port are optional! The settings will be read from sketch.yaml automatically.

For project-based workflows, use board attach first: arduino_cli_command("board attach -p COM3 -b arduino:avr:uno MySketch")

Then upload without specifying FQBN/port each time. See the sketch_project_workflow prompt for details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sketch_pathYes
fqbnYes
portYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate destructiveHint=true, but description adds context: uploading modifies board state, optional parameters if board attached, and links to board attach workflow. No contradiction with annotations.

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?

First sentence states purpose directly. TIP and example are front-loaded but the description is somewhat lengthy. Could be more concise while retaining essential guidance.

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?

With 3 parameters, annotations, and output schema present, the description covers optional parameters and workflow adequately. Lacks explicit return value explanation but schema handles it.

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 0%, so description must carry burden. It implicitly explains fqbn and port as optional via board attach and mentions sketch_path in example, but does not explicitly define each parameter's meaning or format.

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?

First sentence clearly states 'Upload a compiled sketch to an Arduino board.' Verb 'upload' and resource 'sketch to Arduino board' are specific. Distinguishes from siblings like compile_sketch and list_connected_boards.

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

Usage Guidelines5/5

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

Provides TIP about optional parameters when board attach is used, references sketch_project_workflow prompt, and gives example of using board attach first. Explicitly tells when to omit FQBN/port.

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

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