Skip to main content
Glama
bitpirate-mcp
by Indigaz

open_uart

Establish a persistent UART connection to a target device, start a logged engagement, and create a dedicated folder for raw data.

Instructions

Open a persistent UART connection and start an engagement. Creates engagement folder and raw logging. [allowed-write] [Duration: fast (~0.5-2 s -- mode switch + folder creation).]

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": {
      "baud": "<baud>",
      "engagement_name": "<engagement_name>"
    },
    "name": "open_uart"
  }
}

Input Schema

NameRequiredDescriptionDefault
baudYesBaud rate
rx_pinNoESP32 GPIO for RX (e.g., 5)
tx_pinNoESP32 GPIO for TX (e.g., 4)
engagement_nameYesTarget device name
engagement_pathNoPath to an engagement folder (from project-mcp). If provided, writes to <engagement_path>/uart/ instead of creating a standalone engagement.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does carry useful burden and discloses real side effects: folder creation, raw logging files, the '[allowed-write]' nature, and a fast ~0.5-2 s duration. However, it omits important behavior such as what happens if a connection is already open, whether the port is exclusively locked, and what handle or identifier is returned so sibling tools can target this connection.

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?

Two short sentences, front-loaded with the primary action and its side effects, with metadata confined to bracketed tags. Every clause carries information; only the bracketed duration/write tag is slightly noisy formatting.

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 hardware-connection opener with 5 parameters, no annotations, and no output schema, the description covers the what but not the lifecycle: no error/failure behavior, no connection identity for subsequent send_command calls, and no guidance on switching to close_uart. Adequate but with clear gaps given the tool's complexity.

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%, so baud, rx_pin, tx_pin, engagement_name, and engagement_path are already documented with defaults and examples. The description adds no further meaning about baud validity, pin constraints, or how engagement_path changes the write location beyond what the schema states.

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 gives a specific verb and resource ('Open a persistent UART connection') plus the accompanying side effects ('start an engagement', 'Creates engagement folder and raw logging'). It implicitly contrasts with close_uart by naming 'persistent' and 'open', though it does not explicitly differentiate UART from the i2c/spi/1wire siblings.

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 only implied: an agent can infer this must precede UART reads/writes and that close_uart ends it, but the description never states when to choose this over the other open_* bus tools. No preconditions (exclusive access, already-open behavior, required hardware setup) are mentioned.

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