Skip to main content
Glama
zeng-andrew

Instrument MCP Server

by zeng-andrew

explore_scpi

Explore an instrument's SCPI command set by sending commands and queries. Discover supported functions, verify syntax, and confirm communication with unknown or insufficient built-in commands.

Instructions

探索性发送 SCPI 命令,用于学习和发现仪器支持的命令。

使用场景:

  • 仪器型号未知,需要探索支持的命令

  • 内置命令不够用,需要发现新功能

  • 命令语法不确定,需要验证

工作流程:

  1. 先用 explore_scpi(command="*IDN?", query=True) 确认通信

  2. 尝试发送各种命令探索功能

  3. 成功的命令用 save_learned_command() 保存

Args: alias: 已连接仪器的别名,如 "mxa"/"cmw" command: SCPI 命令字符串,如 "FREQ:CENT?" 或 "*OPT?" query: 是否为查询命令(命令以 ? 结尾时自动识别)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasNodefault
commandNo
queryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains the query auto-detection and suggests a safe starting command (*IDN?), but it does not explicitly mention that some SCPI commands may be destructive or alter instrument state. This leaves a gap in transparency for a tool that can send arbitrary commands.

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 concise and well-structured: a short purpose statement, bulleted use cases, a numbered workflow, and an args section. Every sentence adds value without redundancy, and the most important information is front-loaded.

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 tool's moderate complexity (3 parameters, exploratory nature) and the existence of an output schema, the description covers key aspects: purpose, when to use, workflow, and parameter meaning. It could be slightly improved by noting error handling or limitations (e.g., commands that might not be supported), but overall it is complete enough for effective use.

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?

The input schema has 0% description coverage, so the description must compensate. It adds meaning for all three parameters: alias as connected instrument alias, command as SCPI string, and query as boolean with auto-detection logic (command ending with ?). This provides value beyond the raw 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 uses a specific verb ('探索性发送' / exploratory send) and resource ('SCPI 命令'), clearly distinguishing it from sibling tools like scpi_query or scpi_write, which are for direct query/write rather than exploration.

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

Usage Guidelines5/5

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

The description explicitly lists three use cases (unknown instrument, insufficient commands, syntax verification) and provides a step-by-step workflow starting with *IDN?, followed by exploration, then saving with save_learned_command(). It tells when to use this tool and mentions the companion tool for further action.

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