Skip to main content
Glama

Open a VISA instrument

open_instrument

Establish a VISA connection to a SCPI instrument over LAN, USB, GPIB, or serial; optionally query *IDN? to identify it.

Instructions

Open an instrument and optionally query *IDN?.

Bare IPs become TCPIP::::INSTR. host:port becomes a raw TCP SOCKET, which is what many LAN scopes want on port 5025 (Rigol DS1000Z: 5555).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifyNo
resourceYesVISA name, IPv4, hostname, or host:port. Example: TCPIP::192.168.1.10::INSTR or 192.168.1.10 or 192.168.1.10:5025
baud_rateNo
timeout_msNo
read_terminationNo
write_terminationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
notesNo
serialNo
dialectNo
firmwareNo
identityNo
resourceYes
interfaceNo
timeout_msNo
manufacturerNo
instrument_classNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses a non-obvious normalization behavior (bare IP vs host:port mapping to INSTR vs SOCKET), but says nothing about session lifecycle, idempotency of re-opening, or permissions, leaving real gaps for a 6-param connection tool.

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?

Two tightly written sentences with the core action and the resource-format rule front-loaded; nothing is wasted or repetitive.

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?

The output schema means return values need not be described, and the resource-format guidance covers the required parameter. However, for a tool exposing serial/termination/timeout parameters, the absence of any explanation for those knobs and the lack of lifecycle pointers (e.g., pairing with close_instrument) leaves it only partially complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 17% (only 'resource' is documented in the schema). The description adds valuable format semantics for that one parameter, but baud_rate, timeout_ms, read_termination, and write_termination are unexplained in both schema and description, and 'identify' is only implied by 'optionally query *IDN?'.

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?

States a specific verb and resource ('Open an instrument') and adds the optional identify behavior. It is clearly distinguishable from siblings like close_instrument and list_instruments, though it never names them explicitly.

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?

Gives concrete guidance on which resource format the agent should pass ('Bare IPs become TCPIP::<ip>::INSTR. host:port becomes a raw TCP SOCKET') and even names typical ports and a specific device, which is genuinely useful usage context. It lacks explicit when-not-to-use or alternative-tool routing.

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