Skip to main content
Glama
fercarballo

mcp-qa-toolbox

by fercarballo

quality_gate

Evaluate JUnit reports to pass or fail builds based on failure count and flaky test rate, providing explicit reasons for the decision.

Instructions

Decide pass/fail sobre reportes JUnit, con razones explícitas.

Usá esta herramienta cuando necesites una decisión accionable (por ejemplo, "¿se puede promover este build?") en vez de datos crudos. Con un solo archivo verifica los fallos de esa corrida; con un glob de varias corridas verifica además la proporción de tests flaky. La política de este gate es un ejemplo: los umbrales los define quien llama, y la decisión final sigue siendo de una persona.

Args: path: ruta a un reporte JUnit, o glob con varias corridas (por ejemplo "testdata/corridas/*.xml"). max_failures: máximo de tests fallidos (fallos + errores) tolerados en la última corrida (default 0). max_flaky_rate: proporción máxima de tests flaky sobre los tests clasificados, entre 0 y 1 (default 0.0; solo aplica con varias corridas). min_runs: mínimo de ejecuciones para clasificar un test (default 3).

Returns: "decision" ("pass" o "fail"), "aprobado" (bool), "razones" (lista de oraciones que explican cada verificación) y "verificaciones" (los valores medidos contra cada umbral).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
min_runsNo
max_failuresNo
max_flaky_rateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries full burden. It discloses behavior: checks failures for single file, adds flaky check for multiple files, clarifies thresholds are caller-defined, and notes final decision is human. No destructive or side-effect info needed as it's a read-only analysis tool.

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?

Well-structured into purpose, usage, args, and returns. No unnecessary sentences. However, the first sentence could be slightly tighter (e.g., 'Decides pass/fail on JUnit reports with explicit reasons'). Still, it earns its space.

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

Completeness4/5

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

Given the tool's complexity (4 params, output schema exists), the description covers usage scenarios, parameter meanings, and return fields. Minor gap: does not explain exact flaky rate calculation, but this is acceptable as an implementation detail. Overall sufficient for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage, so the description must compensate. It provides thorough explanations for all 4 parameters: path (with glob example), max_failures, max_flaky_rate (with range and applicability), min_runs (with default). This adds substantial meaning beyond the schema's basic types and defaults.

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?

The description clearly states the tool decides pass/fail on JUnit reports, differentiating it from sibling tools that provide raw data (flakiness_report, parse_junit). It specifies the resource (JUnit reports) and the action (decide pass/fail with explicit reasons).

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?

Explicitly states when to use (actionable decision vs raw data) and describes behavior with single vs multiple runs. Lacks explicit 'when not to use' but provides sufficient context through contrast with 'datos crudos' and sibling tool names.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fercarballo/mcp-qa-toolbox'

If you have feedback or need assistance with the MCP directory API, please join our Discord server