Skip to main content
Glama

query_text

Send an ASCII command to a serial device and capture the reply, waiting for a specified prompt or until output goes idle.

Instructions

Convenience: clear the buffer, send an ASCII command, and read the reply.

For the common "ask the device something and read its answer" case. If prompt is given, reads until that prompt appears (best for interactive CLIs). If prompt is empty, reads until the device goes idle for a short beat (best for line-based rigs/CAT that reply with a terminated string and no shell prompt).

Args: data: Command text, e.g. "show version" or "ID". line_ending: "CR", "CRLF", "LF", or "NONE" (see send_text). prompt: Optional literal prompt to read until, e.g. "# ". Empty = read until idle. read_timeout: How long to wait overall, in seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
promptNo
line_endingNoCR
read_timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the behavior of clearing the buffer and reading until prompt or idle, which is good. However, it does not mention side effects like clearing the buffer that might be unexpected, or any permission/connection requirements. It could be more explicit that this is a write/read operation and requires an active connection.

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?

The description is well-structured with a summary first, then detailed parameter explanations. It is concise for the complexity, but the parameter docs could be seen as verbose or could be streamlined into bullet points. Still, it is front-loaded with the key purpose and usage guidance.

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?

The tool has 4 parameters and an output schema (not shown in detail). The description covers the purpose, usage guidance, and parameter semantics adequately. However, it does not mention the return value format or error conditions, which might matter given the output schema exists. A short note on what the reply contains would improve completeness.

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

Parameters4/5

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

With 0% schema description coverage, the description must compensate. It explains each parameter: data as command text, line_ending with examples and reference to send_text, prompt semantics (literal prompt vs idle), and read_timeout as overall wait. This goes beyond the schema's basic names, though it could elaborate more on edge cases or precise format requirements.

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 clearly states that the tool combines clearing the buffer, sending an ASCII command, and reading the reply, using the verb 'send' and resource 'command'. It distinguishes itself from sibling tools by combining operations, and the example commands ('show version', 'ID') make the purpose concrete.

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 explicitly explains when to use this tool vs alternatives. It says 'best for interactive CLIs' when a prompt is given and 'best for line-based rigs/CAT' when prompt is empty. It references send_text for line_ending details, guiding the agent to related tools for more specific behavior.

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