Skip to main content
Glama

inspect_serial_device

Read-onlyIdempotent

Inspects serial devices read-only by running identity handshakes, searching device catalogs, and reading selected function codes without writing parameters or flashing firmware.

Instructions

新串口产品的只读检查,支持 CM55 平台3及 AN 平台9,460800/8N1。identity 只读通用 A/A1 握手;catalog 按设备 B6/B4/B5/B1/B3 读取并分页搜索实际定义;read 先重新获取目录,再按实际地址读取1~20个功能码。不会沿用 AN 的 MAC/状态地址,不验证产品物理唯一身份,不使用旧缓存;不能写参数、采集、运行或烧录。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "inspect_serial_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoidentity
portNoCOM7
codesNo
groupNo
limitNo
queryNo
offsetNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered. The description adds genuine behavioral context beyond that: it does not reuse AN's MAC/status addresses, does not verify physical unique identity, does not use stale cache, and explicitly cannot write/collect/run/flash. This is substantive added transparency.

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?

The single paragraph is dense and front-loads scope and constraints, but the semicolon-separated run-on packs mode, constraints, and negatives together, making it harder to scan. Most content earns its place, but structure could be clearer.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. For a 7-param read-only tool the description covers scope, mode semantics and constraints well, but with 0% schema coverage the parameter-level documentation is only partial.

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?

Schema description coverage is 0%, so the description must carry the burden. It does convey meaning for most parameters—mode values, codes (1-20 function codes), group (B6/B4/B5/B1/B3), pagination (limit/offset via 分页) and query (搜索)—but does not explicitly map each to its parameter name, and port is only implicitly a COM port.

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

Purpose4/5

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

The description gives a specific verb+resource (read-only inspection of new serial products) and enumerates the three modes (identity/catalog/read) with their distinct behaviors and platform constraints (CM55-3, AN-9, 460800/8N1). It is clearly distinguishable from mutation tools. It stops short of naming a specific sibling like probe_device_read_only or read_device_parameters to route between them.

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?

Mode behavior is described (identity = generic A/A1 handshake, catalog = fetch definitions, read = re-fetch catalog then read 1-20 codes), which implies within-tool mode selection. However, there is no explicit when-to-use guidance relative to sibling tools such as probe_device_read_only or read_device_parameters, leaving cross-tool routing to inference.

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