Skip to main content
Glama

Run Quality Gate

run_quality_gate

Execute the Phase A quality gate end-to-end, returning full results with zero arguments. Use before commit for automated checks and blocking on failures.

Instructions

Run Phase A quality gate end-to-end and return full result. Zero args required.

USE WHEN: Running the commit pipeline Phase A quality gate or the Step 12 final gate. Spawns checks as a detached subprocess and polls with heartbeat progress notifications, keeping the MCP stdio connection alive.

Config is read from the pipeline session file written by pipeline_handoff(operation="write", pipeline="commit", phase="checks"). Supported keys: coverage_threshold (float), test_timeout (int), force_fresh (bool), reflection (bool), force_reflection (bool). When reflection is enabled and primary checks pass, a heuristic reflection pass runs; error-level findings set preflight_passed to false.

EXAMPLES:

  • run_quality_gate() before commit Phase A.

  • pipeline_handoff(write, checks, {"force_fresh": true, "test_timeout": 600}) then run_quality_gate() for Step 12 final gate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Reveals key behaviors beyond annotations: spawns a detached subprocess, polls with heartbeat notifications, and explains the reflection pass logic. Annotations already provide non-destructive and non-idempotent hints, but description adds operational detail.

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?

Description is well-organized: a concise lead sentence, a 'USE WHEN' section, config details, and examples. No fluff—every sentence adds value.

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?

The description covers purpose, usage, configuration, and behavior. However, it does not explicitly describe the return value format (e.g., status object structure), which would be helpful given no output schema. Still, it implies results include 'preflight_passed' and 'full result'.

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?

Input schema has zero parameters, but description adds substantial context by listing supported config keys (coverage_threshold, test_timeout, force_fresh, reflection, force_reflection) and how they are read from a session file. This is far more informative than the empty schema.

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 runs a quality gate end-to-end and returns full results. It specifically mentions Phase A quality gate and Step 12 final gate, distinguishing it from sibling 'run_docs_gate'.

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?

Explicit 'USE WHEN' section tells exactly when to invoke the tool (commit pipeline Phase A or Step 12 final gate). It also explains prerequisites: config read from a pipeline session file, and shows an example pairing with pipeline_handoff.

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/igrechuhin/Cortex'

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