Skip to main content
Glama
bitpirate-mcp
by Indigaz

send_command

Send a UART command and capture its response, optionally setting a timeout so the call returns early when data arrives.

Instructions

Send a command over UART and capture the response. [allowed-write] [Duration: fast (~timeout_ms; default 3 s). Returns earlier when response is received.]

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": {
      "session_id": "<session_id>",
      "command": "<command>"
    },
    "name": "send_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYes
session_idYes
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real behavior: the call is an allowed write, it blocks for a fast duration bounded by timeout_ms (default 3 s), and it returns early when a response arrives. It omits whether the command needs a line terminator, how a timeout-with-no-response is signaled, and what happens to data arriving after return.

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 compact sentences with the purpose front-loaded and no filler. The bracketed metadata tags are terse but readable; '[allowed-write]' is slightly cryptic out of context, which keeps it from a 5.

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

Completeness2/5

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

For a 3-parameter tool with no annotations, no output schema, and zero schema description coverage, the description leaves too much open: the return value's form (text vs bytes, error/timeout indication) and the session lifecycle requirement are unaddressed. What is present is accurate but insufficient for correct first-call invocation.

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

Parameters2/5

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

Schema coverage is 0%, so the description must compensate and largely does not. The only parameter touched is timeout_ms, and even that merely restates the schema default (3 s). session_id's origin (a session from open_uart) and command's expected encoding/termination are entirely unexplained.

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?

States a specific verb and resource: send a command over UART and capture the response. That is concrete enough to separate it from session-management siblings like open_uart and close_uart. It does not explicitly distinguish itself from read_output, which is the closest ambiguous case, so no sibling differentiation credit.

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 implied by the command/response framing — the description suggests a request-reply exchange over an already-open UART session. It never states prerequisites (an open_uart session must exist) or when to prefer read_output for buffered data, and offers no exclusions.

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