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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already mark idempotentHint=true and destructiveHint=true, but the description adds no specificity about what destructive actions occur, such as cleaning build cache or exporting binaries into the sketch folder. It is consistent with the annotations and does not contradict them, but it provides no extra behavioral context.

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 sentence with no filler and leads with the action and resource. It is appropriately concise, though it could have included a small amount of contextual guidance without becoming verbose.

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?

An output schema is present, so return-value details are already covered. Required parameters are implied and the schema documents optional parameters and defaults. The main gap is the lack of side-effect context, but the annotations and schema compensate sufficiently for a compile operation.

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 86%, with clear descriptions for sketchPath, fqbn, clean, buildPath, exportBinaries, and autoInstallCore. The description adds no parameter semantics beyond naming FQBN, which the schema already documents, so the baseline score of 3 applies.

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 precise action ('Compile'), a clear resource ('Arduino sketch'), and the key constraint ('specific board FQBN'). It clearly distinguishes this tool from sibling tools like upload_sketch and list_supported_boards.

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 gives no guidance on when to use this tool instead of alternatives such as upload_sketch, ensure_core_installed, or list_supported_boards. There is no mention of prerequisites, exclusions, or decision context, so the agent must infer usage from the tool name and sibling list.

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