Skip to main content
Glama

capture_oscilloscope

Destructive

Triggers E1/E2 oscilloscope capture for 1–4 selected P channels, clears old buffers, and exports raw/converted CSV data for drive signal analysis.

Instructions

用户选定 1~4 个 P 通道后执行 E1/E2 连续示波器采集,立即触发。周期为 2ms 的整数倍,最多 40 秒/20000 点;会清除旧示波器缓冲区,结束发送停止并导出原始/换算 CSV。无设备时间戳,不能保证无丢点;不控制电机。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "codes": "<codes>",
      "sample_period_ms": "<sample_period_ms>",
      "points": "<points>"
    },
    "name": "capture_oscilloscope"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoCOM7
codesYes
pointsYes
transportNoselected_tcp
sample_period_msYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.1

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, it discloses side effects and limits that an agent cannot derive from the schema: it clears the old oscilloscope buffer, matching destructiveHint=true; sends a stop at the end; exports raw and scaled CSV; has no device timestamp; and cannot guarantee zero dropped points. This is exactly the behavioral context an agent needs before invoking a destructive acquisition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action is front-loaded and nearly every clause adds distinct information: trigger, period constraint, buffer clearing, export, and caveats. The semicolon-separated structure is dense but readable, with little wasted wording.

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 destructive, hardware-triggering tool, the definition covers when it runs, the constraints on the parameters, the side effects, and the non-goal; an output schema exists, so return values need no explanation. The missing pieces are how an agent obtains the channel codes and whether transport or port choice matters, both minor against the content present.

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?

With 0% schema description coverage, the description carries the burden, and it does so for the key parameters: codes holds 1-4 channels, sample_period_ms must be an integer multiple of 2 ms, and points has a 20000-point/40-second cap. port and transport, including the transport enum, are never mentioned, so one required gap remains.

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?

The description names a specific verb and resource, 'execute E1/E2 continuous oscilloscope acquisition', and states that it triggers immediately, which is more precise than a restatement of the name. Its only weakness is the unexplained jargon 'P channels', which an agent must infer from the codes parameter or from the list_oscilloscope_channels tool.

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?

It gives a clear precondition, 'after the user selects 1-4 P channels', and states a non-goal, 'does not control motor', which routes the agent away from the drive tools. It does not explicitly name an alternative tool or say when not to use this tool, so it earns a 4 rather than a 5.

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