Skip to main content
Glama

test_scenario

Destructive

Run scripted function block tests against a live TwinCAT PLC while recording signals in parallel. Verify step expectations, restore written values, and get pass/fail results plus recording ID.

Instructions

Scripted FB test against the live PLC with a recording in parallel. spec = {name, record:{symbols|prefix|pattern, mode, cycle_ms}, steps:[{at_ms?, write:{sym:val}} | {expect:[checks], within_ms} | {wait_ms} | {wait_until:{symbol,op,value,timeout_ms}} | {stable:{symbol,duration_ms,tolerance}}], final_expect:[checks], timeout_ms, restore, stop_on_fail}. Every written symbol is gated before the run starts; written values are restored at the end. Returns per-step results, overall pass, and the recording id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4/5.0
Behavior4/5

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

Adds real behavioral context beyond the destructiveHint annotation: every written symbol is gated before the run starts, values are restored at the end, and stop_on_fail governs abort behavior. It also states the return shape. It stops short of naming permission/auth requirements or any rate/scope limits on the live PLC, so not a 5.

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?

Front-loaded with purpose, then dense but waste-free spec grammar; every clause describes a field, a step type, or a side effect. The brief return summary is mildly redundant given the output schema exists, but nothing is padding.

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 nested-argument tool with an output schema, the description covers the spec structure, gating/restore semantics, and result shape well enough to call it correctly. It leaves selection relative to sibling test_* and exp_* tools unaddressed, which is the only real 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?

The schema exposes only an open-ended 'spec' object at 0% description coverage, so the description carries the full burden — and does: it lays out the spec grammar (name, record{symbols|prefix|pattern, mode, cycle_ms}, the full step union, final_expect, timeout_ms, restore, stop_on_fail). This is exhaustive compensation for the schema gap.

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?

Names a specific verb+resource: a scripted FB test executed against the live PLC with a parallel recording. The scope is concrete enough to distinguish it from single-shot helpers like test_expect or test_stable, but it never explicitly names those siblings, so the differentiation is inferred rather than stated.

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?

The description implies the scenario in which it runs (multi-step scripted sequences with writes, expectations, waits and a recording) but gives no explicit when-to-use versus test_expect / test_stable / exp_run, and no prerequisites. Usage is deducible from the described capabilities, not stated.

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