Skip to main content
Glama
proteus-mcp
by YaxOFF

run_testbench

Run pass/fail testbenches against a running simulation to set pins, advance time, and verify digital, analog, frequency, duty, or wait conditions. Failures are reported without stopping the test.

Instructions

[probe] Run a pass/fail testbench against the running simulation. bench is a dict or a .json path: {"name", "steps": [{"set": {"PIN": "1"}}, {"run": 0.001}, {"expect": {"PIN": "0"}}, {"expect_analog": {"PIN": {"min": 4.5, "max": 5.5}}}, {"expect_frequency": {"pin": "P", "min_hz": 900, "max_hz": 1100}}, {"expect_duty": {...}}, {"wait_for": {"pin": "P", "value": "1", "timeout": 0.01, "poll": 0.0001}}]}. Failed expectations are reported, not raised. Needs sim_start and a probe on the named pins.

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": {
      "bench": "<bench>"
    },
    "name": "run_testbench"
  }
}

Input Schema

NameRequiredDescriptionDefault
benchYes
vcd_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/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 substantial work: it documents the bench DSL, states that failed expectations are 'reported, not raised' (a key error-handling trait), and names the required prior state (sim_start plus probe). It does not disclose whether pin sets and simulated time advances persist after the run, nor the shape of the failure report, which are the remaining gaps.

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 purpose and failure semantics are front-loaded, and the long DSL block is dense but each element carries real information. The '[probe]' tag at the start is the only piece that does not clearly earn its place.

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 complex simulation-driving tool with no output schema, the description covers the DSL grammar, prerequisites, and failure behavior well. It falls short on the undocumented vcd_path parameter and on what the returned pass/fail report looks like.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It does an excellent job on 'bench', enumerating step types (set, run, expect, expect_analog, expect_frequency, expect_duty, wait_for) with their field names, but 'vcd_path' is never mentioned and its purpose is left entirely unexplained.

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 first sentence states a specific verb and resource ('Run a pass/fail testbench against the running simulation'), which is much more precise than a sibling like measure_signal. It does not explicitly contrast itself with probe_run or measure_delay, but the pass/fail framing distinguishes it well enough on its own.

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?

'Needs sim_start and a probe on the named pins' gives a concrete prerequisite that tells the agent when this tool can be invoked. It stops short of naming alternatives for narrower measurement needs, so there is no explicit when-not guidance.

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