Skip to main content
Glama
ESP32 DevOps MCP Server
by JosephR26

esp32_hardware_execute

Runs arbitrary I2C, SPI, UART, GPIO, ADC, PWM, and stimulus-capture operations on an ESP32 without a predefined component profile, enabling direct probing and identification of attached hardware.

Instructions

GENERAL-PURPOSE HARDWARE EXECUTION. Runs arbitrary operations you construct against the ESP32 as a physical instrument. Requires NO component profile, NO predefined probe and NO prior identification — this is the path for investigating a component beyond anything anticipated by this MCP. Supports: I2C scan/read/write/write-read with arbitrary bytes, repeated start and inter-phase delay; SPI transfer with arbitrary TX bytes, read length, mode, clock, bit order and CS control; UART write/read/write-read with arbitrary bytes and framing; GPIO configure/read/write/pulse/multi-pin sampling; pulse-width, frequency and edge-timing measurement; ADC sampling with interval and attenuation; PWM stimulus generation; and STIMULUS_CAPTURE, which drives one pin while sampling others on a shared timebase. An operation is refused ONLY when physically invalid on this chip (pin does not exist, is wired to flash, cannot drive an output, parameter out of the silicon's range, conflicting or malformed) — never because it was unanticipated. Raw agent responses are retained verbatim on every operation. A successful operation is OBSERVED evidence: it records what the device did, not what the device is.

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": {
      "operations": "<operations>"
    },
    "name": "esp32_hardware_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoSerial port (optional)
defaultsNoBus defaults merged into any operation omitting its own `bus`. Keys: i2c, spi, uart.
timeoutMsNoPer-operation timeout in ms (optional)
operationsYesOperations to run in order. Each has an `op` field selecting the kind. See the RawOperation type for the full shape of each.
repetitionsNoRun the whole sequence this many times, 1-100. Use this to judge stability — a single run cannot establish it.
stopOnErrorNoStop at the first failure instead of continuing (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description must carry the full behavioral burden, and it does disclose refusal/validation semantics, verbatim retention of raw responses, and the OBSERVED-evidence framing, plus the stability rationale for repetitions. It does not cover permissions, hardware side-effect risk, or what state the device is left in after stimulus/PWM operations, leaving meaningful gaps for a tool that physically drives pins.

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?

Front-loaded with the key identity and routing in the first two sentences, and the capability enumeration is dense but each operation family earns its place for a general-purpose executor. Some repetition of 'arbitrary' and the all-caps emphasis is stylistic rather than wasteful.

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 complex executor with no output schema and no annotations, the description conveys capability scope, validation rules, and evidence semantics well. It stops short of describing the response shape for operation results and the device state after stimulus/PWM/GPIO writes, which an agent would need given there is no output schema.

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 the schema already documents every parameter including nested operation fields; the baseline is 3. The description reinforces that bytes and parameters are arbitrary and enumerates supported operation families, but adds little field-level semantics beyond what the schema already provides.

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?

States a specific verb ('Runs arbitrary operations') and resource ('ESP32 as a physical instrument'), and explicitly distinguishes itself from profile-based paths ('NO component profile, NO predefined probe and NO prior identification'). The unanticipated-component investigation use case lets an agent tell it apart from esp32_component_probe and esp32_component_identify.

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?

Explicitly says when to use it: investigating a component beyond anything anticipated by this MCP, with no prior identification required. It also gives a when-not boundary: operations are refused only when physically invalid on the chip. It stops short of naming specific sibling tools to prefer for anticipated components, which keeps it from a 5.

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