Skip to main content
Glama

run_mutation_tests

Runs mutation testing on critical repository modules to measure test quality and identify weak or missing tests.

Instructions

🧬 Executa mutation testing em módulos críticos. Mede a qualidade dos testes através de mutação de código.

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>",
      "product": "<product>"
    },
    "name": "run_mutation_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesCaminho do repositório
productYesNome do produto
targetsNoLista de módulos/arquivos para testar (opcional, usa risk-register se vazio)
minScoreNoScore mínimo de mutação (%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 does not say whether mutation testing mutates the working tree, how long/expensive it is, whether it requires a clean build or passing baseline suite, or how the minScore threshold affects the outcome. Only the high-level concept is disclosed.

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, front-loaded with the action and resource; nothing is redundant. The emoji is decorative but harmless, and the second sentence meaningfully clarifies the metric.

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 a four-parameter, potentially long-running analysis tool with no annotations and no output schema, the description says nothing about what is returned (mutation score, surviving mutants, report location) or what happens when minScore is not met. Runtime and side-effect characteristics, which matter most for mutation testing, are absent.

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 four parameters (repo, product, targets, minScore) are already well documented in the schema, including the risk-register default. The description adds no parameter meaning beyond that, so the baseline of 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 specific verb+resource combination ('Executa mutation testing') and the scope ('módulos críticos'), plus the intent ('mede a qualidade dos testes através de mutação de código'). The agent can tell what the tool does, but nothing distinguishes it from siblings like explain_tests or analyze, which also deal with test quality.

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

Usage Guidelines2/5

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

The phrase 'módulos críticos' implies a usage context, but there is no explicit when-to-use guidance, no prerequisites, and no mention of alternatives such as explain_tests or validate for cheaper test-quality checks. An agent must infer selection from the name alone.

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