Skip to main content
Glama
ESP32 DevOps MCP Server
by JosephR26

esp32_interface_discovery

Survey ESP32 interfaces (I2C, SPI, UART, GPIO, ADC, DAC, PWM, TOUCH) to report controllers, pins, configuration, peripherals, conflicts, availability, and warnings without changing hardware.

Instructions

STAGE 2 (INTERFACE DISCOVERY). Survey the interfaces the target offers — I2C, SPI, UART, GPIO, ADC, DAC, PWM, TOUCH — reporting available controllers, pins, current configuration, configured peripherals, conflicts, availability and warnings. Read-only: no GPIO is configured and no unknown pin is driven.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "esp32_interface_discovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoSerial port (optional)
interfacesNoRestrict the survey to these interface kinds (optional, e.g. ["I2C","SPI"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and handles the key risk explicitly: "Read-only: no GPIO is configured and no unknown pin is driven." It also discloses the survey's output content. It stops short of stating duration, whether buses are probed actively, or error behavior for unreachable targets.

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?

One dense, front-loaded sentence with the stage label first and the safety guarantee last; every clause carries information. The parenthetical "(INTERFACE DISCOVERY)" mildly duplicates the opening word and could be trimmed.

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 2-optional-parameter tool with no output schema, the description does the necessary work: it lists the categories surveyed, summarizes the return payload, and guarantees non-destructiveness. Minor gaps remain around cost/response shape, but nothing required for a correct call is missing.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline is a 3, but the description adds real meaning: the enumerated interface kinds are precisely the vocabulary the optional "interfaces" filter accepts, and the scoping language matches the restrict-to-these-kinds semantics of that parameter.

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 ("Survey") plus the resource (interfaces) and enumerates exactly what is covered — I2C, SPI, UART, GPIO, ADC, DAC, PWM, TOUCH — and what is reported (controllers, pins, current configuration, conflicts). This clearly separates it from narrow siblings like esp32_i2c_scan or esp32_spi_discovery, which cover a single bus.

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?

The "STAGE 2 (INTERFACE DISCOVERY)" label implies where it sits in a workflow sequence, so usage is implied. However, no alternative tool is named and no when-not condition is given, so an agent must infer that single-bus siblings are the narrower alternative.

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