Skip to main content
Glama

send_hex

Send raw hex bytes to a serial device for binary protocols like Icom CI-V. Writes to TX only; call read_available afterward to see binary replies.

Instructions

Send raw bytes given as hex. Writes to TX only; does NOT read.

Use for binary protocols — notably Icom CI-V, which is all hex (e.g. "FE FE 94 E0 03 FD"). Spaces in the hex string are ignored. To see a binary reply, call read_available afterward (binary replies rarely have a text prompt, so read_until_prompt usually isn't the right tool for these).

Args: hex_bytes: Bytes as hex, e.g. "FE FE 94 E0 03 FD". clear_buffer_first: Discard buffered RX before sending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hex_bytesYes
clear_buffer_firstNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It covers TX-only behavior, the fact that it does not read, that spaces in hex input are ignored, and the optional buffer-clearing behavior. It does not mention connection requirements or error outcomes, but the core side effects are well disclosed.

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?

The description is compact and front-loaded: behavior first, then usage context, then parameter details. Every sentence adds useful information, and the example is valuable without bloating the text.

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

Completeness5/5

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

For a two-parameter tool with no annotations, the description is complete enough for an agent to invoke it correctly. It explains what the tool does, how parameters behave, what to do next, and which sibling tool to use for reading a binary response.

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

Parameters5/5

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

Schema description coverage is 0%, but the description compensates fully: hex_bytes gets a concrete format plus an example, and clear_buffer_first is explained as discarding buffered RX before sending. It even clarifies that whitespace handling, adding real semantic value beyond the raw schema.

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 states a specific action (send raw bytes as hex) and clearly distinguishes itself from sibling read tools by noting it writes to TX only and does NOT read. It also positions itself for binary protocols like Icom CI-V, making it impossible to confuse with send_text or the read tools.

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 description gives explicit when-to-use guidance: use for binary protocols, especially CI-V. It also tells the agent to call read_available afterward to see binary replies and explicitly advises that read_until_prompt is usually not the right tool, which makes the routing decision clear.

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