Skip to main content
Glama

disconnect_serial

Disconnect a targeted serial port immediately to release the connection and prevent communication errors on the xtell-serial interface.

Instructions

Disconnect a serial port.

Input Schema

NameRequiredDescriptionDefault
portYesTarget port

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It says nothing about what happens to buffered/unsent data on disconnect, whether the call errors if the port isn't connected, or whether other sessions sharing the port are affected—significant gaps for a state-changing operation.

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

Conciseness3/5

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

It is a single front-loaded sentence with no waste, but that economy comes at the cost of under-specification rather than genuine conciseness. It is appropriately sized for a trivial one-param tool but leaves too much unsaid.

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?

Given zero annotation coverage, no output schema, and a state-changing verb, the description should say at minimum what the call does to existing connection state and what failure conditions look like. None of that is present, so an agent cannot reliably predict behavior.

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?

There is only one parameter, and schema description coverage is 100%, so "Target port" is already documented in the schema. The description adds no format, identifier, or naming-convention detail beyond that, which is the baseline-3 case when the schema does the heavy lifting.

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

Purpose3/5

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

The sentence names a specific verb ("disconnect") and resource ("serial port"), so the agent can tell it apart from connect_serial and list_serial_ports. However, it is essentially a restatement of the tool name with no additional scope or differentiation, making it only minimum viable.

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?

There is no guidance on when to use this versus siblings like connect_serial or clear_data_buffers, no mention of preconditions (must the port already be connected?), and no exclusions. The agent must infer everything from the name.

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