Skip to main content
Glama

e2e_learnings

Query E2E run history to surface flaky tests, selector/page/API health, error patterns, and trends, helping teams diagnose failures and prioritize fixes.

Instructions

Query the E2E learning system for insights about test stability, flaky tests, selector health, page health, API health, error patterns, and trends. Builds knowledge across runs.

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": {
      "query": "<query>"
    },
    "name": "e2e_learnings"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject root directory (defaults to the current working directory).
daysNoAnalysis window in days (default: 30)
queryYesWhat to query: "summary" (full overview), "flaky" (flaky tests), "selectors" (selector stability), "pages" (page health), "apis" (API health), "errors" (error patterns), "trends" (7-day trend). Drill-down: "test:<name>", "page:<path>", "selector:<value>".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does convey that the tool reads from an accumulating knowledge base rather than executing tests. However, it never states whether it is strictly read-only, what happens when no prior runs exist, whether data is cached or requires a preceding e2e_run, or how large/expensive the query is.

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?

Two sentences, front-loaded with the verb and the scope, with no filler. The trailing 'Builds knowledge across runs' is the weakest part — it gestures at persistence without committing to a concrete behavior.

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 no output schema and no annotations, the description should do more to characterize what a response looks like for each query mode or how drill-down results are shaped. It covers the domain well but leaves the return shape and the freshness of the underlying knowledge base 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 100%, so cwd, days, and the full query enum (summary/flaky/selectors/pages/apis/errors/trends plus drill-down forms) are already documented in the schema. The description adds no additional meaning about parameter interactions or defaults, so the baseline 3 applies.

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?

Uses a specific verb ('Query') against a named resource ('E2E learning system') and enumerates the insight domains it covers: stability, flaky tests, selectors, pages, APIs, errors, trends. An agent can tell this is a read/insight tool rather than a runner or creator, though it never names a sibling such as e2e_analyze to sharpen the boundary.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'Builds knowledge across runs' hints this is for cross-run historical analysis rather than single-run inspection, which loosely separates it from e2e_analyze. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer the routing decision.

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