Skip to main content
Glama

Keep and run regression scenarios

three_scenario

Save, list, and run regression scenarios built from three_play runs; replay them in CI and report each failing claim with its value and frame.

Instructions

Regression tests made from three_play runs, kept in the project as .threesmith/scenarios/.json (commit them; threesmith ci runs them and writes JUnit). op save runs the play once more with the same arguments and keeps it only when it passes (undoable with three_undo); op list shows the kept ones; op run runs one (name) or all, with every failing claim, its value and frame.

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": {
      "op": "<op>"
    },
    "name": "three_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
nameNoscenario name (letters, digits, - and _); for run: exact or part of the name
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
rootNo
waitNo
entryNo
stepsNoSteps in order: {"type":"click","selector":"#start"} or {x,y}, {"type":"press","key":"Space"}, {"type":"hold","key":"ArrowRight","ms":300}, {"type":"drag","from":[x,y],"to":[x,y]}, {"type":"wheel","deltaY":200}, {"type":"wait","ms":500}, {"type":"wait-for","selector":"canvas"}, {"type":"frames","n":10}, {"type":"eval","js":"app.start()"}, {"type":"until","js":"$('ball').position.y < 0","timeout":5000}.
watchNo
widthNo
expectNoClaims about the scene: "$('player').position.y > 1 @ end", "any: $('door').rotation.y > 1", "always: info.render.calls < 200", "x @ step 2", or {js, at}.
heightNo
targetNoFolder with the page (index.html), or the http(s) URL of a running dev server.
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, openWorld=true, idempotent=false; the description goes far beyond that by naming the exact on-disk artifact path, the write side effect, the commit requirement, the CI/JUnit integration, and the fact that a failed save is reversible via three_undo. It also discloses what a failing run returns (the failing claim, its value, its frame), which is genuinely useful behavior an agent cannot infer from annotations.

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?

It front-loads the core identity (regression tests from plays) before the storage location and per-op behavior, and every clause carries information. It is dense to the point of being a run-on with stacked parentheticals and slashes, which costs a little readability but wastes no sentences.

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 13-parameter, no-output-schema tool this covers the essential decision surface: what a scenario is, how it is saved, how it is listed/run, what failure output looks like, and how to roll back. The main remaining gap is guidance on the non-op parameters (entry, target, steps, expect), which the description leaves entirely to a partially documented schema.

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 only 38% across 13 parameters, and the description only clarifies two of them: the op enum semantics (save/list/run) and that name is exact-or-partial for run. Params like steps, expect, target, wait, watch, width/height and overwrite get no added meaning from the description, leaving most of the surface to the schema's partial descriptions.

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 description opens with a concrete verb+resource — 'Regression tests made from three_play runs' — and states exactly where they live (.threesmith/scenarios/<name>.json). It distinguishes itself from three_play (the source of the runs), three_undo (the rollback path) and 'threesmith ci' (the runner), so an agent can tell what this tool is for without opening any 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?

The three ops are each given a when-to-use meaning: save to persist a passing play, list to see kept scenarios, run to execute one or all. It also names an alternative escape hatch ('undoable with three_undo') and a workflow next step (commit them, ci runs them). It stops short of an explicit 'use this instead of three_play when…' contrast, so it is clear context rather than a full routing rule.

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