Skip to main content
Glama
kinbeg

mcp-kr-controller

by kinbeg

setup_connection

Add a serial, TCP, or UDP connection. Provide host, port, or path to connect and begin device scanning.

Instructions

添加通讯连接。用户通过对话告知通讯方式后调用此工具。支持三种类型:serial(串口,需提供 path 如 COM3)、tcp(TCP透传,需提供 host 和 port)、udp(UDP透传,需提供 host 和 port)。添加后自动连接,可用于后续设备扫描。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo设备/网关 IP 地址(仅 type=tcp/udp 时需要),如 192.168.1.100
pathNo串口路径(仅 type=serial 时需要),如 COM3、COM4、/dev/ttyUSB0
portNo设备/网关端口号(仅 type=tcp/udp 时需要),如 8080
typeYes通讯方式:serial=串口/UART, tcp=TCP透传, udp=UDP透传
baudRateNo波特率(仅 type=serial),默认 9600
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It transparently states that the tool automatically connects after adding ('添加后自动连接') and that it can be used for subsequent device scanning, providing useful behavioral context beyond the basic 'add' operation. It doesn't contradict any annotations since none exist.

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 three concise sentences, front-loaded with the core purpose. Each sentence adds distinct value: the action, the trigger and types with required params, and the post-add behavior. There is no filler or repetition.

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 tool with 5 parameters, no output schema, and no annotations, the description covers the essential usage flow, including when to call it, what each type requires, and the automatic connection behavior. It mentions its relationship to device scanning, which aligns with sibling tools. While it doesn't specify return values or error handling, these are not strictly required for a setup action, and the schema covers parameter specifics.

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 schema provides 100% coverage of parameter descriptions, so the baseline is 3. The description adds per-type parameter grouping and concrete examples (COM3, 192.168.1.100, 8080), which aids understanding, but this is largely redundant with the schema's existing '仅 type=... 时需要' notes. It doesn't add major new meaning beyond the schema.

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 opens with '添加通讯连接' (add a communication connection), clearly stating the specific verb and resource. It enumerates three supported types (serial, tcp, udp) and distinguishes itself from siblings like remove_connection and list_connections by focusing on the addition operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states the trigger condition: '用户通过对话告知通讯方式后调用此工具' (call this tool after the user tells you the communication method). It also notes the tool's role in enabling subsequent device scanning, which clarifies when to use it in the workflow. However, it doesn't explicitly mention when not to use it or name alternatives, so it's not a 5.

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/kinbeg/mcp-kr-controller'

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