Skip to main content
Glama

write_line

Sends text plus a newline to an open serial port so you can issue firmware CLI commands and other line-based interactions.

Instructions

Send text plus a newline to an open port, e.g. a command for the firmware's CLI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYes
textYes
newlineNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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. It does disclose two useful behaviors — a newline is appended, and the port must already be open — but says nothing about whether the write blocks, what happens if the port is closed, whether output is buffered, or how errors surface.

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?

A single front-loaded sentence with the verb first and the example trailing; nothing is wasted and the agent gets the core behavior immediately.

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?

An output schema exists, so return values need not be explained. However, for a write tool with zero annotation coverage and zero schema description coverage, the definition omits the port identifier convention and failure behavior that an agent would need to call it reliably.

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% across three parameters, so the description must compensate and largely does not. It clarifies that 'text' is combined with a newline, but 'port' is left entirely unexplained (port name from list_ports vs. a device path is ambiguous) and the newline parameter's configurable format is never mentioned.

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 text plus a newline to an open port'. The newline-appending behavior and the target (an open port) are both explicit, which distinguishes it from read_lines and clear_buffer. It stops short of naming a sibling tool directly, so sibling differentiation is only implicit.

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 rather than stated: describing the port as 'open' hints that open_port must run first, and the firmware-CLI example suggests a command-entry scenario. There is no explicit when-to-use guidance, no when-not-to-use, and no named alternative among the nine siblings.

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