Skip to main content
Glama

e2e-finish-recording

Finalize an active e2e test recording for a named test and project root, save the YAML, and return a step summary with warnings; fails if no recording is in progress.

Instructions

Finish recording the e2e test named by name + project_root, leaving recordings under any other key untouched. Returns { message, path, executionPrerequisite, steps, summary, e2eTestFile, savedTo } - a summary of all recorded steps plus the final YAML. Use when you have added all desired steps and want to finalize the e2e test file. Fails if that e2e test has no recording in progress. A warning e2e-add-step raised on a recorded await-ui-element is repeated in summary as a warning: line right below its step, and message counts them by kind. Read them before you convert a wait to await:/assert: or replay the e2e test. You can still edit the .yaml file directly afterwards to remove or reorder steps.

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": {
      "name": "<name>",
      "project_root": "<project_root>"
    },
    "name": "e2e-finish-recording"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the e2e test being recorded: the one passed to e2e-start-recording.
project_rootYesAbsolute path to the project root of the e2e test being recorded: the same value passed to e2e-start-recording.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/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: it discloses the returned object's fields, the failure condition, that other recordings are untouched, that warnings raised earlier by e2e-add-step are re-surfaced per step, and that the YAML remains hand-editable afterwards. This is behavioral context an agent could not get from structured fields.

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, return shape, and usage trigger are front-loaded in the first two sentences; the warning-propagation and post-edit notes follow in descending priority. The warning paragraph is somewhat convoluted in phrasing ("repeated in `summary` as a `warning:` line right below its step") but carries non-obvious guidance about converting waits, so trimming it would cost real information.

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

Completeness5/5

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

For a two-parameter finalization tool with no annotations and no output schema, the description covers the return payload field-by-field, the failure mode, and the downstream editing path. Nothing an agent needs in order to call this correctly or interpret the result is missing.

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 100%, so the schema already explains both parameters fully, including that they must match the values passed to e2e-start-recording. The description adds no syntax, format, or constraint information beyond what the schema states, so the baseline of 3 applies.

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?

"Finish recording the e2e test named by `name` + `project_root`" gives a specific verb (finish) and resource (e2e test recording), and the clause "leaving recordings under any other key untouched" scopes it against the sibling recording tools. An agent can distinguish it from e2e-start-recording and e2e-add-step 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?

"Use when you have added all desired steps and want to finalize the e2e test file" states the triggering condition, and "Fails if that e2e test has no recording in progress" gives the prerequisite. No sibling is named as an explicit alternative, but the start-recording pairing is implied by the parameter descriptions pointing back to it.

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