Skip to main content
Glama
blame-me

mcp-for-arduino

by blame-me

preprocess

Read-onlyIdempotent

Print an Arduino sketch's preprocessed source to debug #define and conditional-compile issues without compiling it.

Instructions

Print the preprocessed sketch source (macros expanded, headers resolved) instead of compiling. Useful for debugging #define / conditional-compile issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fqbnNoBoard FQBN, e.g. 'arduino:avr:uno'. Omit if set via board-attach.
sketchPathYesPath to sketch folder or .ino file
additionalUrlsNoExtra board-manager URLs
buildPropertiesNoExtra -D flags

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description usefully explains the output content (preprocessed source) rather than just repeating that it's a read, but says nothing about permissions or how this relates to the compile pipeline beyond 'instead of compiling.'

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?

Two tight sentences: the first front-loads what the tool does, the second gives the use case. No wasted words.

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 simple read-only operation, the description covers purpose, output, and use case, and annotations carry the safety profile. The lack of an output schema is mitigated by the description stating that the preprocessed source is printed, though it could note whether output is streamed or returned.

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 100%, so all four parameters are already documented in the schema. The description adds no parameter-level meaning (e.g., how fqbn or buildProperties affect preprocessing), so the baseline 3 is appropriate.

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?

States a specific verb ('Print') and resource ('the preprocessed sketch source') and clarifies the transformation (macros expanded, headers resolved). It implicitly contrasts with 'compile' via 'instead of compiling,' though it doesn't name the sibling tool directly.

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

Usage Guidelines4/5

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

Gives a clear use case: 'debugging #define / conditional-compile issues.' This tells the agent when the tool is valuable, but offers no explicit exclusions or named alternatives for other debugging scenarios.

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