Skip to main content
Glama
hardware-mcp

arduino-mcp-server

by hardware-mcp

Compile Sketch

compile_sketch
DestructiveIdempotent

Compile an Arduino sketch using a specific board FQBN. Configure build options like cleaning cache, exporting binaries, and auto-installing missing cores.

Instructions

Compile an Arduino sketch with a specific board FQBN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sketchPathYesPath to sketch folder or .ino file.
fqbnYesBoard FQBN, e.g. arduino:avr:uno.
exportBinariesNoIf true, export binaries into sketch folder.
cleanNoIf true, clean build cache before compile.
buildPathNoOptional build output directory.
warningsNo
autoInstallCoreNoIf true (default), auto-install missing board core before compile.

Output Schema

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

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

The annotations already indicate destructiveHint and idempotentHint. The description adds no further behavioral context, such as the fact that compilation may export binaries or modify build directories. It does not contradict annotations, but adds minimal value beyond them.

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 sentence that is concise and to the point. It contains no unnecessary words or information.

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

Completeness3/5

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

Given the tool has 7 parameters and an output schema, the description is minimal. It does not explain prerequisites (e.g., core installation), output behavior, or response format. The output schema may compensate, but for a complex tool like compilation, more context would be beneficial.

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?

The input schema already provides descriptions for most parameters (86% coverage). The description does not add any additional meaning beyond what is in the schema, such as clarifying the format of sketchPath or the meaning of enums like warnings.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool compiles an Arduino sketch with a specific board FQBN. It uses a specific verb and resource, making the purpose clear. However, it does not explicitly differentiate from sibling tools like upload_sketch, which also involve compilation.

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 versus alternatives or when not to use it. For example, it does not mention that the board core must be installed beforehand or that upload_sketch is needed for flashing.

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