Skip to main content
Glama
ESP32 DevOps MCP Server
by JosephR26

esp32_pin_capabilities

Report each ESP32 GPIO's documented capabilities, reserved and strapping pins, firmware allocations, and unavailable features so you can plan pin assignments before wiring an experiment.

Instructions

Report what every pin on this ESP32 can actually do — digital input/output, ADC, DAC, touch, PWM and GPIO-matrix routability — plus which pins are reserved and why, which are strapping pins, what the running firmware currently has allocated, and which agent capabilities are unavailable on this firmware build. Use this to plan an experiment instead of guessing pin assignments. The ESP32 GPIO matrix routes most peripheral signals to most pins, so bus assignments are far more flexible than a board silkscreen suggests. Pin capabilities are DOCUMENTED (datasheet-derived), not measured.

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

Input Schema

NameRequiredDescriptionDefault
pinsNoRestrict the report to these GPIOs (optional)
portNoSerial port (optional)
filterNoOnly report pins supporting this capability (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.9/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 does so well: it discloses the data provenance (datasheet-derived, not measured), that it reports reserved pins and the reason for the reservation, and that it surfaces unavailable agent capabilities on this firmware build — all non-obvious behavioral facts. The remaining gap is whether a live device/port connection is required for the firmware-allocation portion versus the static datasheet portion, which is left ambiguous even though a `port` parameter exists.

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 payload enumeration is front-loaded in the first sentence, followed by usage guidance and then a genuinely useful piece of context about the GPIO matrix and the documented-versus-measured distinction. Every sentence earns its place, though the em-dash enumeration runs long and could be split for faster scanning.

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?

There is no output schema, so the description must describe what comes back, and it does — listing reserved pins, strapping pins, current firmware allocations, and unavailable capabilities. For a parameterless-by-default, read-only inspection tool on a complex hardware target, that is nearly complete; only the device-connection requirement for the runtime-allocation portion is unstated.

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 coverage is 100%, so the three parameters (pins, port, filter) are already fully documented in the schema, and the enum values are spelled out there. The description echoes the capability names that map to the `filter` enum and implies whole-board scope when `pins` is omitted, but adds no syntax, default, or format detail beyond what the schema provides. Baseline 3 is appropriate.

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 a specific verb and resource ("Report what every pin on this ESP32 can actually do") and then enumerates the exact payload: digital IO, ADC, DAC, touch, PWM, GPIO-matrix routability, reserved pins, strapping pins, firmware allocations, and unavailable agent capabilities. That is far more specific than the bare tool name. It stops short of explicitly contrasting itself with the similarly named sibling esp32_component_capabilities, so it lands at a clear 4 rather than a 5.

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?

Explicit when-to-use guidance is present: "Use this to plan an experiment instead of guessing pin assignments," and the closing note that capabilities are DOCUMENTED rather than measured tells the agent when this is not a substitute for actual measurement. No when-not conditions or named alternative tools (e.g. esp32_hardware_inventory, esp32_interface_discovery) are given, so it is a solid 4 rather than a 5.

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