Skip to main content
Glama
ESP32 DevOps MCP Server
by JosephR26

esp32_component_test

Runs capability-specific functional tests on ESP32-connected components, records evidence, and updates the capability matrix by marking passing tests as VERIFIED.

Instructions

STAGE 11-12 (SAFE FUNCTIONAL TESTING, TELEMETRY CAPTURE). Runs the capability-specific functional tests declared by a component profile — identification, communication, status reporting, sensor reads, protocol detection, register readback and so on. Every test records its objective, configuration, procedure, expected result, observed result, pass/fail, evidence, confidence and duration, and returns an updated capability matrix in which passing tests promote capabilities to VERIFIED.

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": {
      "component": "<component>"
    },
    "name": "esp32_component_test"
  }
}

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)
depthNoDepth gate for which tests may run (default: STANDARD)STANDARD
testsNoTest ids or names to run (optional — runs every applicable test if omitted)
addressNoI2C address (optional)
clockHzNoSPI clock in Hz
componentYesComponent profile id, part number or alias
interfaceNoInterface to test over (default: I2C)I2C
timeoutMsNoRequest timeout in ms (optional)
frequencyHzNoI2C frequency in Hz

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it flags the operation as 'SAFE FUNCTIONAL TESTING' and discloses a real state side effect, namely that results feed an updated capability matrix in which passing tests promote capabilities to VERIFIED. It also lists the telemetry captured per test, though it omits permissions, failure modes, and whether promotions are reversible.

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?

Three sentences, front-loaded with the operation and its stage, then scope, then return behavior. The enumeration of recorded fields (objective, configuration, procedure, expected result...) is long but genuinely informative rather than padding; the parenthetical stage label is the only mildly cryptic element.

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, 19-parameter hardware tool with no annotations and no output schema, the description supplies the two things structured data cannot: what the return value is (an updated capability matrix) and what side effect it has (capability promotion). It stops short of explaining hardware prerequisites or how interface choice constrains the GPIO parameters, which is the main remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and every one of the 19 parameters has its own description, so the schema does the heavy lifting and the baseline of 3 applies. The description adds a small amount beyond it by implying that 'component' is a profile reference and that the depth gate governs which declared tests are eligible to run.

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 and scope: it 'runs the capability-specific functional tests declared by a component profile,' and enumerates the test families (identification, communication, sensor reads, register readback). It does not, however, contrast itself with nearby siblings such as esp32_run_tests, esp32_component_probe or esp32_component_benchmark, so an agent must infer the boundary.

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

Usage Guidelines3/5

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

Usage is implied by the workflow marker 'STAGE 11-12' and by the prerequisite that a component profile must declare the tests, which tells the agent roughly when in a sequence this belongs. There is no explicit when-not guidance, no statement about required hardware/connection state, and no named alternative for a plain non-component test run.

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