Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RIGOL_HOSTYesScope IP address or host name.
RIGOL_PORTNoScope SCPI port.5555
RIGOL_TIMEOUTNoSeconds to wait for the scope.10
RIGOL_DATA_DIRNoWhere captures are saved. In Docker the default is /data.~/.local/share/rigol-mcp
RIGOL_HOST_PORTNoDocker only: port published on the host.8790
RIGOL_HTTP_HOSTNoHTTP bind address, or use --bind.0.0.0.0
RIGOL_HTTP_PORTNoHTTP port, or use --port.8790
RIGOL_MCP_TOKENNoToken clients must send. Required for HTTP mode.
RIGOL_READ_ONLYNoSet to 1 to block scope_write.off
RIGOL_TRANSPORTNoTransport mode; http is the same as --http.stdio
RIGOL_PUBLIC_URLNoBase URL used in links to screenshots and the gallery.
RIGOL_ALLOW_NO_AUTHNoSet to 1 to allow HTTP without a token on trusted networks only.off
RIGOL_KEEP_WAVEFORMSNoNumber of waveform CSVs to keep; 0 keeps all.100
RIGOL_KEEP_SCREENSHOTSNoNumber of screenshots to keep; 0 keeps all.100

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Controls a Rigol DS1000Z oscilloscope. Start with scope_status. Settings are only changed with scope_write, and only when the user asks: real circuits may be connected. Measurements that are null are invalid on the scope (e.g. frequency of a DC signal).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
scope_statusA

Overview of the scope: model, trigger, timebase, sample rate, and for each channel whether it is on, its V/div, offset, coupling, probe ratio, plus Vpp, Vavg, Vrms and frequency. Invalid measurements are null. Start here.

scope_measureA

Run the scope's built-in measurements on one channel (1-4). items: any of VMAX VMIN VPP VTOP VBASE VAMP VAVG VRMS OVER PRES MAR MPAR PER FREQ RTIM FTIM PWID NWID PDUT NDUT. Default: a common set. Times are in seconds, duty cycles are fractions (0.25 = 25%). Invalid results are null.

scope_waveformA

Download the on-screen waveform of one channel (1200 samples) and return summary stats plus up to max_points evenly spaced [time_s, volts] samples (0 = stats only, 1200 = every sample). include_csv=True also returns every sample as CSV text (~30 KB). Each download is saved with a timestamp; see scope_waveform_history.

scope_screenshotA

Capture the scope's display as a PNG. Every screenshot is saved with a UTC timestamp (the last RIGOL_KEEP_SCREENSHOTS are kept); see scope_screenshot_history.

scope_screenshot_historyA

List saved screenshots, newest first (id, UTC timestamp, size, and URL when served over HTTP). Does not touch the scope. Use scope_screenshot_get to view one.

scope_screenshot_getA

Return a saved screenshot without touching the scope. id is 'latest' (default) or an id from scope_screenshot_history.

scope_waveform_historyB

List saved waveform CSVs, newest first, with channel and UTC timestamp.

scope_queryA

Send a read-only SCPI query (must end with '?') and return the reply, e.g. ':CHAN1:BWL?', ':ACQ:MDEP?', ':TRIG:EDG:SLOP?'.

scope_writeA

Change a scope setting with a SCPI command, e.g. ':CHAN1:SCAL 1', ':TIM:SCAL 0.001', ':RUN', ':STOP', ':SING', ':AUT'. ONLY use when the user asked to change the scope: real circuits may be connected. Returns the scope's error queue ('0,"No error"').

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 9 tools

Disambiguation4/5

Status, measure, waveform, screenshot, and the history tools each have a clearly distinct target. The main soft overlap is that scope_query and scope_write are generic SCPI escape hatches that could in principle replicate status/measure/screenshot, but the descriptions scope them narrowly (read-only '?' / user-requested writes) so misselection risk is low.

Naming Consistency4/5

All names share the scope_ prefix in consistent snake_case, which is highly predictable. There is a minor deviation in shape: some are noun-only (scope_waveform, scope_screenshot) while others are noun_verb (scope_status, scope_screenshot_get, scope_screenshot_history), but the pattern remains readable.

Tool Count5/5

Nine tools is well within the sweet spot and each earns its place: a read/measure/capture core plus paired raw SCPI access and history retrieval. Nothing feels redundant or padded.

Completeness3/5

Core acquisition workflows (status, measure, waveform, screenshot, raw query/write) are covered, but the history surface is asymmetric: saved screenshots can be listed and fetched (scope_screenshot_history/get), yet saved waveform CSVs can only be listed with no tool to retrieve one. There is also no cleanup/delete operation and no dedicated trigger or channel-config helper, forcing agents into raw SCPI for common setup tasks.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues