Skip to main content
Glama

e2e-add-echo

Records an echo step in an in-progress e2e test, adding a human-readable label or checkpoint message that prints when the test is replayed.

Instructions

Record an echo step in the e2e test named by name + project_root. Echo steps print a message when the e2e test is replayed, useful as labels between tool calls. Use when you want to annotate a recorded e2e test with a human-readable label or checkpoint message. Returns { message, stepCount, savedTo }. Fails if that e2e test has no recording in progress.

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>",
      "message": "<message>"
    },
    "name": "e2e-add-echo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the e2e test being recorded: the one passed to e2e-start-recording.
messageYesText the echo step prints
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/5.0
Behavior4/5

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

With no annotations, the description discloses the replay behavior, return fields {message, stepCount, savedTo}, and the failure mode when no recording exists. It leaves unstated whether repeated echo steps are allowed or whether the operation is undoable.

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 the core action and concise overall. The 'useful as labels' and 'Use when you want to annotate' clauses are slightly redundant but not wasteful.

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 three-parameter recording tool with no output schema, the description covers the effect, return shape, use case, and failure prerequisite. No annotation or output-schema omissions leave an agent unable to call it correctly.

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 coverage is 100%, so name/project_root/message are already documented in the schema. The description reinforces the start-recording linkage but adds no new format or constraint details.

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 and resource ('Record an echo step') and explains the effect (prints a message on replay). It is clearly not a generic script/step tool, but it does not explicitly contrast with sibling add-step tools.

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?

States the use case ('annotate ... with a human-readable label or checkpoint message') and gives a failure condition when no recording is in progress. It does not name alternative tools for inserting other step types.

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