Skip to main content
Glama

validate

Checks code quality gates for coverage, mutation score, and diff coverage, then fails CI/CD checks when minimum criteria are not met.

Instructions

✅ Valida gates de qualidade (coverage, mutation, scenarios). Usado em CI/CD para bloquear PRs que não atendem critérios mínimos.

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": {
      "repo": "<repo>"
    },
    "name": "validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesCaminho do repositório
productNoNome do produto (opcional)
failOnLowNoFalhar se abaixo do mínimo
minBranchNoCobertura mínima de branches (%)
baseBranchNoBranch base para diffmain
minMutationNoMutation score mínimo (%)
minDiffCoverageNoCobertura mínima do diff (%)
requireContractsPassingNoExige contratos CDC/Pact passando

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never says whether the tool is read-only, whether it executes the test/mutation suites (and how long that takes), what it returns (exit status, report, threshold breach list), or what state, if any, it touches — 'bloquear PRs' hints at failure semantics already covered by the failOnLow parameter.

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 short sentences with the core purpose front-loaded and no filler prose. The leading checkmark emoji is non-functional noise, but the text itself is tight.

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

Completeness2/5

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

For an eight-parameter gating tool with no annotations and no output schema, the description should at least sketch the result of a run (pass/fail, threshold violations) and whether the underlying suites are executed. Neither is covered, and the relationship to the report and release_quality_gate siblings is 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 all eight parameters including thresholds and defaults are already documented in the schema. The description adds no syntax, units, or interaction guidance beyond that, 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?

States a concrete verb ('Valida') and resource ('gates de qualidade') and enumerates the dimensions checked (coverage, mutation, scenarios), so the agent knows this is a quality-gate evaluation. It does not differentiate itself from the overlapping sibling 'release_quality_gate', leaving the agent to guess which gate tool to pick.

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 'Usado em CI/CD para bloquear PRs' gives usage context, but it is descriptive rather than instructive and gives no when-not conditions or named alternatives. With a sibling called release_quality_gate and another called self-check, the omission is meaningful.

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