Skip to main content
Glama
qa-triage-mcp
by mnawaz6935

Quarantine a flaky test

quarantine_test

Mark a flaky test as quarantined so CI can skip it until it is fixed; use dry-run by default and write only after confirmation.

Instructions

Mark a flaky test as quarantined so CI can skip it until it's fixed. Defaults to dry_run=True; only pass dry_run=false after the user confirms. Appends to quarantine.jsonl and never edits test results.

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": {
      "test_id": "<test_id>",
      "reason": "<reason>"
    },
    "name": "quarantine_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
dry_runNo
test_idYesTest id as "<classname>::<test name>", e.g. tests.unit.test_tax::test_vat_standard_rate

Output Schema

NameRequiredDescriptionDefault
dry_runYes
messageYes
test_idYes
acceptedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false, openWorld=false; the description adds real substance beyond that — the write target (quarantine.jsonl), the scope limitation (never edits test results), and the dry-run-first safety protocol. It omits whether repeated calls append duplicate entries, which matters given idempotentHint=false.

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

Conciseness5/5

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

Two tight sentences, zero filler. The purpose and the CI-skip effect come first, followed by the safety constraint that governs invocation.

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?

For a simple mutation with an output schema (so return values need no explanation), the description covers purpose, write behavior, and the dry-run protocol. Missing only the 'reason' parameter expectation and duplicate/idempotency behavior for repeated appends.

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 coverage is only 33% — only test_id is documented in the schema. The description explains dry_run's default and the confirmation gate, but the required 'reason' parameter (10-500 chars) gets no guidance on expected content, leaving a gap in a low-coverage schema.

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 and resource ('Mark a flaky test as quarantined') plus the concrete effect ('so CI can skip it until it's fixed'). It implicitly separates itself from discovery siblings like find_flaky_tests and from ingestion tools via 'never edits test results', though it never names an alternative explicitly.

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?

Gives clear conditional guidance for the riskiest parameter: default dry_run=True, and 'only pass dry_run=false after the user confirms'. It does not state when to prefer other tools (e.g. find_flaky_tests to identify candidates) or preconditions for calling it at all.

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