Skip to main content
Glama
gurul
by gurul

send_to_device

Transmit a line of text to a connected serial device for embedded debugging, with optional port and newline handling; disabled unless HWLOG_MCP_ALLOW_SEND=1.

Instructions

Send a line to a device. Disabled unless HWLOG_MCP_ALLOW_SEND=1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
textYes
newlineNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the environment-variable enablement gate, but says nothing about mutation semantics, whether the device replies, rate limits, targeting behavior when port is omitted, or error conditions.

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, front-loaded sentences with no waste. It is tight, though the second sentence is a bare operational warning rather than explanatory context.

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?

An output schema exists, so return values need no explanation, but for a 3-parameter tool with zero schema coverage and no annotations the description leaves too much unresolved: port targeting, newline behavior, and the concrete consequence of the disabled state are all missing.

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 description coverage is 0% for all three parameters, so the description must compensate. "Send a line" loosely hints at text/newline handling, but the optional port parameter and the default newline=true behavior are entirely undocumented in both schema and description.

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 line to a device"), which is enough to distinguish it from read-side siblings like list_serial_ports and query_logs. It does not explicitly contrast itself with the other write-ish sibling wait_for_pattern, so it falls short of 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?

The only guidance is a gating condition ("Disabled unless HWLOG_MCP_ALLOW_SEND=1"), which describes a prerequisite rather than when to choose this tool over wait_for_pattern or other siblings. No when-to-use, when-not-to-use, or alternative routing is given.

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