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
| Name | Required | Description | Default |
|---|---|---|---|
| cs | No | Chip-select GPIO (SPI, required for SPI) | |
| rx | No | RX GPIO (UART) | |
| tx | No | TX GPIO (UART) | |
| scl | No | SCL GPIO (I2C) | |
| sda | No | SDA GPIO (I2C) | |
| baud | No | UART baud rate | |
| miso | No | MISO GPIO (SPI) | |
| mode | No | SPI mode 0-3 | |
| mosi | No | MOSI GPIO (SPI) | |
| port | No | Serial port (optional) | |
| sclk | No | SCLK GPIO (SPI) | |
| address | No | I2C address (optional) | |
| clockHz | No | SPI clock in Hz | |
| interface | No | Interface under test (default: I2C) | I2C |
| objective | Yes | What this experiment is meant to establish | |
| procedure | No | Ordered steps. Each names a safe probe from the target component profile. Defaults to every applicable probe when omitted. | |
| telemetry | No | Telemetry the experiment requires | |
| timeoutMs | No | Request timeout in ms (optional) | |
| hypothesis | No | What you expect and why (optional) | |
| frequencyHz | No | I2C frequency in Hz | |
| repetitions | No | How many times to run the procedure, 1-50 (default: 1) | |
| experimentId | No | Stable id for the experiment (optional) | |
| expectedResult | No | The concrete expected observation (optional) | |
| targetComponent | No | Component profile id whose safe probes the procedure draws on | |
| safetyConstraints | No | Additional constraints to record with the experiment |