Skip to main content
Glama

test-exit-interpret

Interpret a test run: pass, no-tests, skipped, flaky, infra-failure from runner, exit code and counts — Reads a finished test run (runner, exit code, optional version, flags, caller-parsed counts, optional go test output, optional per-attempt exit codes) and says whether tests actually passed, ran nothing, were all skipped, passed only on retry, or never ran properly (timeout, signal, internal error). Encodes only exit-code semantics the runners document: pytest 0-5, node:test, mocha (failure count

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": {
      "runner": "<runner>"
    },
    "name": "test-exit-interpret"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagsNo
countsNoCounts parsed by the caller from the runner's own report.
outputNogo test output (only ok, FAIL, --- FAIL and panic: lines are read).
runnerYes
signalNoTerminating signal name, e.g. SIGKILL.
versionNoRunner version, e.g. 10.4.0. Needed only for version-gated flags.
exitCodeNoProcess exit status. Omit when the process was killed by a signal or timed out.
timedOutNoTrue when the harness gave up waiting.
attemptExitCodesNoExit codes of repeated runs of the same tests, to detect flakiness. Interpreted with the same runner rules.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It does useful work, stating it encodes only exit-code semantics that runners document and noting which go test output lines are read and how repeated attempts detect flakiness. However, it never states that this is a pure, side-effect-free computation, and the sentence that would explain runner-specific exit-code handling is cut off mid-word ("mocha (failure count "), leaving the key behavioral claim incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is two sentences, but the second is a single sprawling run-on that packs runner, exit code, version, flags, counts, output, and attempt codes into one breath with nested parentheses. Worse, it terminates mid-word ("mocha (failure count "), so it is both structurally bloated and literally incomplete; the useful outcome list is buried rather than front-loaded.

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?

For a 9-parameter, annotation-free tool with no output schema, the description does cover the important ground: it names the input scope and describes the classes of result returned. But the truncation drops the runner-specific exit-code semantics that the description explicitly promises to encode, and nothing explains the response shape or how ambiguity between counts and exit code is resolved, leaving real gaps for a decision-heavy tool.

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 78%, so the schema already documents most parameters (exitCode, timedOut, signal, counts, attemptExitCodes, version, output). The description largely restates those same categories in its parenthetical parameter list and duplicates the go test parsing rule verbatim from the schema. It adds little parameter meaning beyond what the schema provides, so 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?

The opening clause states a specific verb and resource ("Interpret a test run") and enumerates the outcome classes it produces: pass, no-tests, skipped, flaky, infra-failure. The second sentence restates the same idea with more precision ("says whether tests actually passed, ran nothing, were all skipped, passed only on retry, or never ran properly"). The purpose is unambiguous, though the redundant restatement and the truncated tail slightly blur the definition.

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?

The phrase "Reads a finished test run" implies the precondition (the run must be complete, with runner/exit code available) and "needed only for version-gated flags" gives scoping for one parameter. There is no explicit when-not-to-use guidance and no named alternative tool, so the agent must infer usage from context rather than being routed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources