Skip to main content
Glama
NaoNaoMe

USBTMC MCP Server

by NaoNaoMe

usbtmc_unlock_keysight_devices

Idempotent

Switch Keysight USB instruments from firmware update mode to USBTMC mode, enabling normal SCPI control. Fixes the problem of devices stuck in firmware update mode.

Instructions

Switch all Keysight devices from firmware update mode to USBTMC mode.

Some Keysight USB modular instruments (e.g., U2700 series) power on in firmware update mode and require a vendor-specific command to switch to normal USBTMC operation.

After calling this function, devices will re-enumerate on the USB bus. Wait a moment, then call usbtmc_list_devices() to discover them.

Returns: dict: Result containing: - unlocked_count (int): Number of successfully unlocked devices - total_found (int): Total devices found in firmware mode - message (str): Success or informational message - errors (list[str], optional): List of error messages if any device failed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, etc.), the description discloses a critical side effect: devices will re-enumerate on the USB bus and the agent must wait before listing them. It also indicates that the result includes an error list, but it does not discuss permissions or non-Keysight devices, though that is arguably beyond the scope given the empty schema.

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 well-structured and concise: one purpose sentence, a two-sentence background, a clear post-usage instruction, and a cleanly formatted return-value block. Every sentence earns its place without redundancy.

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

Completeness5/5

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

Given that the tool takes no parameters and has a detailed output schema, the description is fully complete: it states the purpose, when to use it, the re-enumeration side effect, and the return structure. There are no missing pieces for an agent to invoke it correctly.

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 tool has zero parameters and the input schema is empty, so the description correctly requires no input. Per the rule for 0-parameter tools, the baseline is 4. The description does not add parameter details because there are none to add.

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 'Switch all Keysight devices from firmware update mode to USBTMC mode,' a clear verb-object with scope. This directly distinguishes it from sibling tools like usbtmc_list_devices or usbtmc_connect by specifying the exact action and target device type.

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 explains the triggering condition (some Keysight devices power on in firmware update mode) and gives a concrete workflow: call this function, wait, then call usbtmc_list_devices. It does not explicitly say when not to use it, but the context implies it is only for devices in firmware mode, making usage sufficiently clear.

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/NaoNaoMe/usbtmc-lite-mcp'

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