Skip to main content
Glama

run_scenario

Executes BDD/Gherkin scenarios against a running 1C TestClient, running live open steps and replaying captured action frames, then returns the ScenarioResult.

Instructions

Run a scenario (from feature_text or scenario_json) through the native Python TestManager against a running 1C /TESTCLIENT at host:port. When feature_text carries several scenarios, the first runs and the rest register as callees for any run_subscenario («я выполняю сценарий 'X'») step.

OPEN steps (open_main_form / open_list) EXECUTE LIVE with no capture: the form is opened by its e1cib nav-link via the splice_navigate sequence on the bootstrapped session (config-agnostic, fixture-free — the same mechanism read_form_descriptor uses). The step passes when the form actually opens (window-resolved), so «Я открываю основную форму справочника 'Валюты'» drives a real client open + state change. Other ACTION steps (click/select/input/close/…) re-target a CAPTURED command frame, so to EXECUTE those pass action_capture — the capture dir holding those command frames; each action step's frame is located by its marker and replayed GUID-rebound to the live session. action_input_value is the value baked into the capture's input frame (so a .feature input_text retargets correctly), and action_ordinals ("marker=ordinal,marker=ordinal") pins a frame when a marker is not unique. Without action_capture only read/assert/data/skip/subscenario/open steps run; other action steps report unsupported. Returns the ScenarioResult.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo127.0.0.1
portNo
capture_dirNotm-v1-ro-batchQ3
feature_textNo
scenario_jsonNo
action_captureNo
single_sessionNo
action_ordinalsNo
manager_templatesNo/app/src/qa_mcp/_bundled/8.3/templates/manager_frame_templates.json
action_input_valueNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/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 so unusually well: it discloses that OPEN steps execute live with no capture (window-resolved pass condition), that other action steps re-target a captured frame replayed GUID-rebound to the live session, and that frames are matched by marker and pinned via ordinals. The failure mode without action_capture is stated outright.

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?

Purpose and the feature_text/scenario_json source are front-loaded, and no sentence is pure filler — each adds execution semantics. However, the prose is a dense wall of parentheticals, backticks and guillemets that is hard to scan for the key distinctions.

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 10-parameter tool with an output schema (so return values need no explanation), the execution model, capture requirements and step-support matrix are covered well. The main gap is the prerequisite chain — it says 'against a running /TESTCLIENT' but never points at launch_test_client/attach_test_client, and under-explains the remaining connection/session parameters.

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 description coverage is 0% across 10 parameters, so the description must compensate. It adds real meaning for action_capture, action_input_value, action_ordinals, and feature_text (multi-scenario → callees), but leaves host, port, capture_dir, single_session, and manager_templates entirely undocumented. Roughly half the parameters remain opaque.

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 first sentence states a specific verb and resource ('Run a scenario ... through the native Python TestManager against a running 1C /TESTCLIENT') and the multi-scenario/callee registration detail implicitly separates it from the step-level sibling run_step. An agent can tell this is a full scenario runner, not a single-step executor, without opening the schema.

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 conditional ('to EXECUTE those pass ``action_capture``') and an explicit exclusion ('Without ``action_capture`` only read/assert/data/skip/subscenario/open steps run; other action steps report unsupported'), which is strong when-to-use guidance. It never names an alternative tool such as run_step or run_write_scenario_tool, so the routing is inferred rather than stated.

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