Skip to main content
Glama
ESP32 DevOps MCP Server
by JosephR26

esp32_hardware_inventory

Inventory an ESP32 target's chip, memory, MAC, firmware, SDK, serial bridge, and peripheral counts with evidence and confidence labels, returning UNKNOWN for undetermined fields instead of guessing.

Instructions

STAGE 1 (ESP32 IDENTIFICATION). Comprehensive inventory of the ESP32 target: chip family, model, revision, architecture, cores, CPU frequency, flash, PSRAM, MAC, silicon features, reset reason, boot info, firmware/app identity and version, SDK/framework, PlatformIO environment, serial interface, USB-UART bridge, GPIO/ADC/DAC/PWM/touch/timer/I2C/SPI/UART counts, Wi-Fi and Bluetooth. Every field carries its confidence and evidence source, and anything that cannot be determined is returned as UNKNOWN rather than guessed. Datasheet-derived values are labelled DOCUMENTED and are never presented as measurements.

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_hardware_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoSerial port (optional, uses recommended port)
projectPathNoPlatformIO project directory to read platformio.ini from (optional)

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 disclosure burden and does notably well: it states every field carries a confidence level and evidence source, that undeterminable values return UNKNOWN rather than being guessed, and that datasheet values are labelled DOCUMENTED and never presented as measurements. That is genuine behavioral context an agent could not get from the schema. It stops short of explicitly declaring the tool read-only or stating whether the probe touches the device's state, which is why it is not a 5.

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?

The critical framing ('STAGE 1', 'Comprehensive inventory of the ESP32 target') is front-loaded, and the long field enumeration is the substance of the answer rather than filler. It is somewhat dense as one paragraph, but every clause conveys reported content or behavioral guarantees.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must convey the return shape, and it does so exhaustively — enumerating the hardware, firmware, and peripheral fields returned plus the confidence/UNKNOWN/DOCUMENTED labelling semantics. Combined with the 100%-covered two-parameter schema, an agent has everything needed to call this correctly.

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%: both port ('uses recommended port') and projectPath ('read platformio.ini from') are already documented in the schema. The description mentions PlatformIO only as a reported field and adds no meaning beyond the schema for either parameter, so the baseline 3 applies.

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 opens with 'STAGE 1 (ESP32 IDENTIFICATION). Comprehensive inventory of the ESP32 target' and then enumerates exactly what is reported (chip family, cores, flash, MAC, GPIO counts, Wi-Fi/Bluetooth, etc.). The verb+resource and scope are unambiguous, and the 'STAGE 1' label positions it relative to discovery/build/flash siblings, though it never names a specific alternative.

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 1' framing implies this is the first step in a workflow and should precede other hardware operations, which is real implied guidance. However, there is no explicit statement of when to prefer it over esp32_component_identify, esp32_interface_discovery, or esp32_pin_capabilities, and no exclusions or prerequisites are stated.

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