Skip to main content
Glama

qa.scenario_draft

Read-only

Creates a draft test scenario from a recorded browser flow, leaving assertions and requirement source empty so candidate assertions can be promoted against real requirements.

Instructions

The recorded flow as a draft scenario. It is deliberately not compilable: assertions are empty and requirementSource is null, because those are the two things an agent must not invent. Candidate assertions are listed separately for a human or an agent to promote against a real requirement.

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": {
      "id": "<id>",
      "name": "<name>"
    },
    "name": "qa.scenario_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesLowercase letters, numbers and hyphens, e.g. "todo-create".
nameYes
roleNoAuth role whose stored state the test should load.
viewportNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
start_pathNo
requirement_sourceNoThe requirement document this flow is tested against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses a genuinely useful behavioral trait: the output is deliberately non-compilable, with empty assertions and a null requirementSource, and explains why. That is exactly the kind of context annotations cannot carry, though it stops short of describing overall return shape or how the recorded flow is sourced.

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?

Three tight sentences with the key constraint front-loaded and no filler. The second sentence's rationale clause is slightly verbose but earns its place by explaining the constraint rather than merely restating it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 parameters, no output schema, and an ambiguous operation, the description should clarify what the call produces and what it consumes. It covers the artifact's limitations well but leaves the mechanics of invocation and the required inputs (id, name, and how the recording is referenced) unaddressed.

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 63%, so the baseline is 3. The description only touches requirement_source (noting it is null in the draft) and says nothing about role, viewport, start_path, target_id, or browser_id semantics — notably it never explains where the "recorded flow" input comes from.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description characterizes the artifact ("The recorded flow as a draft scenario") but never states the operation with a verb or resource, so an agent must infer that this tool converts/emits a scenario draft. It does distinguish itself implicitly from a promotable/compilable scenario, but the core action remains ambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no ordering relative to siblings like scenario.apply, scenario.list, or qa.record_stop, and no prerequisites. The closing clause hints that promotion is a separate step but never names the tool that performs it.

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