Skip to main content
Glama
zeng-andrew

Instrument MCP Server

by zeng-andrew

connect

Create a VISA instrument connection using its address, instrument type, and alias to enable subsequent instrument control commands.

Instructions

连接 VISA 仪器。必须先连接才能使用其他命令。

使用示例:

  • 连接 MXA: connect(address="TCPIP::192.168.1.100::INSTR", alias="mxa")

  • 连接 CMW500: connect(address="TCPIP::172.22.1.3::INSTR", alias="cmw")

  • 连接电源: connect(address="GPIB0::5::INSTR", alias="ps")

Args: address: VISA 地址,如 "TCPIP::IP::INSTR" 或 "GPIB0::5::INSTR" instrument_type: 仪器类型,设为 "auto" 自动识别,或指定 "mxa"/"cmw"/"keysight_ps" alias: 会话别名,后续命令通过此别名引用仪器,如 "mxa"/"cmw"/"ps"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
instrument_typeNoauto
aliasNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only states the basic function and gives examples. It does not disclose what happens on failure, whether the tool is idempotent, how sessions are managed, or any side effects beyond establishing a connection. This is minimal transparency for a tool that likely modifies state.

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

Conciseness4/5

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

The description is concise: a one-line purpose, then usage examples, then parameter listing. It is front-loaded with the key requirement. Three examples may be slightly redundant, but overall structure is clear and efficient.

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?

Given the complexity (numerous sibling tools), the description adequately covers the essential: what the tool does, prerequisites (must connect first), and parameter usage. It does not detail return values, but an output schema exists. The description is sufficiently complete for this entry-point tool.

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%, but the description provides detailed explanations for all three parameters: address (VISA address format), instrument_type (with default 'auto' and examples like 'mxa'), and alias (session alias for later use). This adds significant meaning beyond the schema titles.

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 '连接 VISA 仪器' (connect VISA instrument) with a specific verb and resource, and clearly distinguishes from sibling tools which are instrument-specific commands that require an existing connection. The tool is positioned as the prerequisite for all other operations.

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 says '必须先连接才能使用其他命令' (must connect first to use other commands), providing clear when-to-use context. Examples illustrate typical usage. However, it lacks explicit when-not-to-use scenarios and alternative suggestions, though alternatives are not relevant here.

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/zeng-andrew/instrument-mcp'

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