Skip to main content
Glama

create_session

Create a terminal session on an open serial port for interactive communication with serial devices. Configure line ending type and local echo to match your device's requirements.

Instructions

在已打开串口上创建终端会话,支持配置换行符和本地回显

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYes串口路径,如 /dev/ttyUSB0 或 COM1
line_endingNo换行符类型:CR(回车)、LF(换行)、CRLF(回车换行)CRLF
local_echoNo是否本地回显发送的命令
buffer_sizeNo输出缓冲区大小(字节),默认 64KB
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits such as side effects, error conditions, or what happens if the port is not open. The description only lists configuration options without explaining the creation behavior.

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 a single sentence that concisely captures the tool's main action and configuration options. It is front-loaded with the essential purpose and contains no redundant or extraneous information.

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 the tool has 4 parameters, no output schema, and no annotations, the description is too brief. It does not explain what a 'session' entails, how to interact with it after creation, or how it relates to sibling tools like send_command or read_data. An agent may lack sufficient context to use it correctly.

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?

The input schema has 100% description coverage for all parameters. The description merely reiterates the line ending and echo configurations already present in the schema, adding no new semantic meaning or usage context beyond what the schema provides.

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 explicitly states it creates a terminal session on an already opened serial port and supports configuring line endings and local echo. This clearly differentiates it from sibling tools like open_port (which opens the port) and list_sessions (which lists existing sessions).

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 that the serial port must be opened first, but it does not explicitly state when to use this tool versus alternatives or provide any conditions on when not to use it. No guidance on prerequisites or error handling is given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/donnel666/uart-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server