Skip to main content
Glama
ESP32 DevOps MCP Server
by JosephR26

esp32_set_default_port

Sets the default serial port for ESP32 development so flashing and monitoring use the intended device without repeating the port each time.

Instructions

Set default serial port for ESP32 development

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": {
      "port": "<port>"
    },
    "name": "esp32_set_default_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYesSerial port name (e.g., COM3, /dev/ttyUSB0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does not say whether the setting persists across sessions, whether subsequent tools (esp32_flash, esp32_build) automatically use it, what happens if the port name is invalid or not currently connected, or what the response looks like.

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?

A single short sentence with no filler, and the action is front-loaded. It is not padded, though it is terse to the point of omitting needed context rather than being overly wordy.

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

Completeness3/5

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

For a one-parameter configuration tool with full schema coverage and no output schema, the description is minimally adequate. It still leaves open the statefulness question (does the default apply to later flash/build calls?) that an agent needs before invoking it.

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?

There is a single required parameter with 100% schema coverage, including an example format (COM3, /dev/ttyUSB0), so the schema already does the work. The description adds nothing about validation or whether the value must match a detected port, 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 uses a specific verb ("Set") and resource ("default serial port") scoped to ESP32 development, so the agent knows exactly what state is being changed. It does not distinguish this from siblings like esp32_add_favorite_port or esp32_list_ports, which is the main thing keeping it from 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 Guidelines2/5

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

There is no when-to-use guidance: nothing says whether the port must first be discovered via esp32_detect_ports/esp32_list_ports, or how this differs from adding a favorite port. The agent has to infer the workflow entirely from the name.

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