Skip to main content
Glama

serial_send

Destructive

Transmit a single raw HEX payload on a serial port, automatically opening and closing the port. Use for one-shot sends without needing to keep the connection open.

Instructions

One-shot raw HEX transmit (opens/closes the port; use serial_write when capturing).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexYesHEX payload, even digits
portYesSerial port name, e.g. COM5 or /dev/ttyUSB0
parityNoParity (default none)
timeoutNoOperation timeout in ms (default 200)
baudrateNoBaud rate (default 115200)
bytesizeNoData bits: 5/6/7/8 (default 8)
stopbitsNoStop bits (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

The description adds meaningful behavior beyond the annotations: it explicitly discloses that the port is opened and closed on each call. It also implies no response capturing occurs by directing capturing use cases to serial_write. Annotations already signal mutation and non-idempotency, so the added port-management detail is good context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One concise sentence carries the core behavior, the port lifecycle, and a routing hint to an alternative. Every word contributes, and the most important qualifier ('one-shot') is front-loaded.

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?

For a 7-parameter tool with full schema coverage and annotations covering safety, the description adds the key missing context: port open/close behavior and when to prefer serial_write. It does not describe the return value or failure behavior, and with no output schema, that slight gap prevents a 5.

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 all seven parameters are already documented with types/defaults/meaning. The description adds no new parameter-level semantics beyond what the schema provides, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action ('transmit'), a specific resource (serial port), and a specific format ('raw HEX'), while 'one-shot' clearly defines the scope. It also distinguishes itself from serial_write by noting the port is opened and closed, so an agent can tell them apart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The parenthetical 'use serial_write when capturing' gives an explicit alternative with a clear selection condition. The 'one-shot' phrasing further communicates this tool is for a single transmission rather than streaming or interactive sessions.

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