Skip to main content
Glama

Get test harness analysis

get_test_harness_analysis
Read-only

Get Snag's test-harness readiness analysis for a connected repo: whether Snag can run its tests (status), whether they pass, the detected test command, and — if there's no harness — concrete setup suggestions (framework, steps, a starter test, config files) to implement. Call this right after connecting a repo, before relying on test-backed fixes. status is one of: "pass" (tests run and pass), "fail" (they run but have pre-existing failures — still a usable harness), "no_harness" (no runnable tests were found — either no test command was detected, or a command WAS detected and run but its own output shows it found nothing to invoke or executed and collected zero tests; use the suggestions), "checking" (a bake/test run is in flight — retry shortly), "error" (the bake or the check itself failed before any test could run; the harness state is UNKNOWN, so do not claim a fix is test-verified), "none" (no check has ever run for this repo), or "not_connected" (no repo connected). If stalled: true accompanies a "checking" status, that check will NEVER complete on its own — treat it exactly like "error" and stop polling; a human must re-run it from the Snag dashboard.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_test_harness_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and nothing in the description contradicts them. The description adds genuinely useful behavior the annotations cannot convey: the semantics of each status value, the meaning of the accompanying `stalled` flag, and the instruction to stop polling rather than hang. That is substantial added context, but it omits the permission/auth model and any cost/latency expectations beyond the "checking" retry case, so it sits just above the annotation-covered baseline.

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-loads the core purpose in the first clause and then spends its length on the status enumeration, which is the highest-value information. The single long run-on paragraph with heavy parentheticals makes it harder to scan than a short bulleted status list would be, which is the only real efficiency loss.

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?

There is no output schema, so the description carries the full return-value burden — and it does: it names status, pass/fail, detected command, and the concrete shape of suggestions (framework, steps, starter test, config files), plus the `stalled` companion field and every status value including "none" and "not_connected". Nothing an agent needs in order to interpret the response 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?

The schema has one optional `repo` property at 0% description coverage, and the description never explains it — it only says "for a connected repo," which implies a default but never confirms the parameter's meaning, format, or fallback. With one undocumented parameter, the description fails to compensate for the coverage gap, so the score lands at the minimum-viable 3 rather than the 0-param baseline of 4.

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?

States a specific verb and resource ("Get Snag's test-harness readiness analysis for a connected repo") and enumerates exactly the four things returned: runnability status, pass/fail, detected command, and setup suggestions. This is unmistakable against siblings like get_bug_context or get_console_logs, which cover different data.

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

Usage Guidelines5/5

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

Gives explicit timing ("Call this right after connecting a repo, before relying on test-backed fixes") and per-status follow-up behavior: retry on "checking", use suggestions on "no_harness", stop polling and treat as error when stalled. It also states what NOT to conclude (do not claim a fix is test-verified on "error").

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