Skip to main content
Glama

serial_disconnect

Closes an open serial connection and releases its port from the connection pool; use the connection ID returned by serial_connect.

Instructions

Close a serial connection.

Closes the serial port and removes it from the connection pool.

Args: connection_id: Connection ID from serial_connect.

Returns: Confirmation message.

Input Schema

NameRequiredDescriptionDefault
connection_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It clearly discloses the main side effects—closing the port and removing it from the pool—but does not mention idempotency, error behavior for invalid/already-closed connections, or whether other connections are affected.

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 short, front-loaded, and organized with Args and Returns sections. Every sentence contributes to understanding the action, parameter source, and return value.

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 one-parameter disconnect tool with an output schema and no annotations, the description covers the action, side effects, parameter provenance, and return type. It is nearly complete, though it could mention error or idempotency behavior for a mutation-like operation.

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?

Schema description coverage is 0%, so the description must add meaning for the single required parameter. It does so usefully by identifying connection_id as the ID obtained from serial_connect, which goes beyond the bare schema title 'Connection Id.'

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 verb and resource: 'Close a serial connection.' It also clarifies the effect—closing the serial port and removing it from the connection pool—so the agent can distinguish it from sibling tools like serial_connect, serial_send, and serial_read.

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?

The description implies usage by stating the connection_id comes from serial_connect, but it does not explicitly say when to disconnect, whether it should be called before reconnecting, or how it relates to alternatives. The usage context is inferable but not spelled out.

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