Skip to main content
Glama
ESP32 DevOps MCP Server
by JosephR26

esp32_hardware_experiment

Orchestrates the full ESP32 hardware experiment lifecycle—prepare, execute, observe, validate, repeat, and report—returning hypothesis checks, raw observations, and reproducibility records.

Instructions

EXPERIMENT ORCHESTRATOR. Runs a complete experiment lifecycle — PREPARE, VERIFY CONFIGURATION, EXECUTE, OBSERVE, CAPTURE, VALIDATE, ANALYSE, REPEAT, REPORT — and returns a machine-readable report containing the objective, hypothesis, expected result, safety constraints, per-phase records, every raw observation, telemetry status, consistency analysis across repetitions, validation against the hypothesis, findings, anomalies, capability implications, conclusion, confidence, and a full reproducibility record (hardware, firmware version, MCP version, configuration, pins, bus, frequency, timestamp).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "objective": "<objective>"
    },
    "name": "esp32_hardware_experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
csNoChip-select GPIO (SPI, required for SPI)
rxNoRX GPIO (UART)
txNoTX GPIO (UART)
sclNoSCL GPIO (I2C)
sdaNoSDA GPIO (I2C)
baudNoUART baud rate
misoNoMISO GPIO (SPI)
modeNoSPI mode 0-3
mosiNoMOSI GPIO (SPI)
portNoSerial port (optional)
sclkNoSCLK GPIO (SPI)
addressNoI2C address (optional)
clockHzNoSPI clock in Hz
interfaceNoInterface under test (default: I2C)I2C
objectiveYesWhat this experiment is meant to establish
procedureNoOrdered steps. Each names a safe probe from the target component profile. Defaults to every applicable probe when omitted.
telemetryNoTelemetry the experiment requires
timeoutMsNoRequest timeout in ms (optional)
hypothesisNoWhat you expect and why (optional)
frequencyHzNoI2C frequency in Hz
repetitionsNoHow many times to run the procedure, 1-50 (default: 1)
experimentIdNoStable id for the experiment (optional)
expectedResultNoThe concrete expected observation (optional)
targetComponentNoComponent profile id whose safe probes the procedure draws on
safetyConstraintsNoAdditional constraints to record with the experiment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3.1/5.0
Behavior3/5

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

With zero annotations the description carries the full behavioral burden, and it does disclose the phase sequence, the REPEAT/consistency-analysis behavior, and an unusually detailed return payload including a reproducibility record. However it never states whether the tool drives hardware and mutates device state, what happens when a probe fails, how long 1-50 repetitions may take, or whether a port/target component must already be known — significant gaps for a hardware-executing tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is front-loaded and effective, but the second sentence degenerates into a very long comma-separated enumeration of report fields that is hard to scan. Because no output schema exists the enumeration earns some place, but it is bloated and mixes phase names, report contents, and reproducibility metadata without structure.

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?

For a 25-parameter tool with no annotations and no output schema, the description does useful work by sketching the return payload. It still leaves key operational questions unanswered — hardware state side effects, failure/abort semantics, prerequisites, and expected runtime — which matter greatly for an experiment orchestrator. Adequate, but with clear gaps.

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% across all 25 parameters, so the schema already documents pins, bus frequencies, interface enum, procedure steps, and repetitions. The description adds only indirect meaning by listing 'pins, bus, frequency' in the reproducibility record; it gives no interpretation of objective vs hypothesis vs expectedResult or the safety constraints. Baseline 3 is appropriate when the schema does the heavy lifting.

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 names a specific verb and resource — it 'Runs a complete experiment lifecycle' spanning PREPARE through REPORT — so the agent knows this is a multi-phase orchestration tool, not a single probe or flash. It never names a sibling (e.g. esp32_component_test or esp32_hardware_execute) as the narrower alternative, so differentiation is inferable from the lifecycle framing rather than stated.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is mentioned among the many sibling probe/test tools. The 'complete experiment lifecycle' framing implies this is the heavyweight option, but the agent must guess that from the name alone; no prerequisites (connected board, target component profile) are stated.

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