Skip to main content
Glama
andy-qingcai

MHO98 MCP Server

by andy-qingcai

set_ieee488_enable

Set IEEE 488.2 event and service enable registers on a Rigol MHO98 oscilloscope to define which status bits trigger service requests, and optionally arm *OPC for completion polling.

Instructions

Set IEEE488.2 enable registers (*ESE, *SRE) and optionally arm *OPC.

event_enable: bit sum (0..255) for the standard event register (OPC=1, QYE=4, DDE=8, EXE=16, CME=32, PON=128 — table 3.153). service_enable: bit sum (0..255) for the status byte register (ERR queue=4, QSD=8, MAV=16, SES=32, MSS=64, OSR=128 — table 3.154). signal_operation_complete: send *OPC so bit 0 of *ESR latches when all pending operations finish (poll with get_ieee488_status).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_enableNo
service_enableNo
signal_operation_completeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it explains the bit-level semantics of each register, lists specific bit values with table references, and describes what *OPC does (latching bit 0 of *ESR after pending operations). It does not explicitly state that setting these registers overwrites existing masks or whether omissions leave settings unchanged, but overall transparency is high.

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 front-loaded with the core purpose, then uses clear parameter-by-parameter lines. Every sentence is informative and earns its place; the bit tables are necessary for correct invocation.

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?

For a 3-parameter tool with no annotations, 0% schema coverage, and an output schema, the description is nearly complete. It fully documents parameters and the *OPC behavior, but omits what happens when optional parameters are omitted (e.g., no change vs reset to zero), which is a minor gap.

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

Parameters5/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 compensate fully and does: it describes each of the three parameters with meaning, range (0..255), bit definitions and table references for the two integer registers, and the behavioral effect of the boolean signal_operation_complete parameter. This adds substantial value beyond the bare type-only 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 states a specific verb and resource: 'Set IEEE488.2 enable registers (*ESE, *SRE) and optionally arm *OPC.' It names the exact SCPI registers and the *OPC operation, clearly distinguishing it from sibling tools like get_ieee488_status and wait_complete.

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?

Usage is implied by the parameter explanations and the mention of polling with `get_ieee488_status`, but there is no explicit guidance on when to use this tool versus alternatives (e.g., wait_complete, scpi, clear_status). No when-not or exclusion criteria are provided.

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

Deploy Server

Other Tools