Skip to main content
Glama
zinntikumugai

rigol-oscilloscope-mcp

get_math_state

Retrieve current math trace settings from a RIGOL oscilloscope, including channel, display, operator, and sources for each trace. Read-only operation that returns detailed configuration without altering the display.

Instructions

Return the math trace settings (channel, display, operator, sources).

With channel given (1-4), that trace's settings are returned flat. With channel omitted, every math trace is returned under channels, keyed by the trace number as a string: {"channels": {"1": {...}, ..., "4": {...}}}.

Only the keys that mean something for the current operator are read: scale and offset_v for the arithmetic operators, lsource1 and lsource2 for the logic ones, an fft dict for the fft operator and a filter dict for the filter ones. With the fft operator and search_enabled true, the instrument's own peak table is returned in peaks, each entry having index, frequency_hz, amplitude and amplitude_unit (lines that could not be parsed are returned raw and noted in peak_warnings).

This is read-only and never changes the display. It costs a few queries per trace (about 20 for an fft trace).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelNo
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and handles it thoroughly. It explicitly says the operation is read-only, never changes the display, costs a few queries per trace, and discloses operator-dependent response behavior including FFT peak handling and warnings.

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 short paragraphs to cover the optional parameter behavior, operator-dependent keys, and side-effect/cost notes. Each sentence adds necessary information that is not already in the schema or annotations.

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 the absence of an output schema, the description is unusually complete: it documents return shapes for both parameter modes, key selection per operator, FFT peak details and warnings, and the cost profile. Nothing an agent needs to call the tool correctly appears to be missing.

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?

The schema provides only the type and default for channel, with zero property descriptions. The description compensates fully by stating the valid channel range (1-4), the flattened single-trace result shape, the all-traces result shape when omitted, and how traces are keyed by string numbers.

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 a specific verb and resource ('Return the math trace settings') and enumerates the exact scope (channel, display, operator, sources). This is distinct from generic sibling getters like get_state or get_channel, so an agent can identify the tool's purpose immediately.

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 provides clear invocation context by explaining both the channel-given and channel-omitted cases, effectively telling an agent how to request a single trace versus all traces. It does not explicitly name an alternative getter or state when not to use this tool, so it stops short of full alternative routing.

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

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/zinntikumugai/rigol-oscilloscope-mcp'

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