Skip to main content
Glama

add_quality_gate

Add a quality gate to block pipeline tasks after a specified step until evaluation criteria are met. Configure criteria as JSON to define manual or automated checks.

Instructions

在 Pipeline 中添加质量门。质量门在指定 order_index 之后阻塞后续任务,直到评估通过。criteria 为 JSON 格式的检查规则。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pipeline_idYesPipeline ID
gate_nameYes质量门名称
criteriaYes评估规则(JSON 格式,如 {"type":"manual","check":"code_review"})
after_orderYes在哪个 order_index 之后的任务需要等待此质量门通过
Behavior3/5

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

The description discloses key behavior: blocking subsequent tasks until evaluation passes. However, without annotations, it omits details on side effects, error handling, or required permissions. The criteria format is mentioned but not fully validated.

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 concise sentences front-load the main purpose and add necessary detail. No redundant information; every word contributes.

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 creation tool with no output schema, the description adequately covers purpose, key parameters, and behavior. It lacks error conditions or return information but is sufficient for basic usage.

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

Parameters4/5

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

The input schema covers all 4 parameters with descriptions, so baseline is 3. The description adds value by clarifying the role of 'after_order' (position to block after) and explaining 'criteria' as JSON check rules, going beyond 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?

The description clearly states the tool adds a quality gate to a pipeline and explains its blocking behavior. It implicitly distinguishes from evaluation tools like evaluate_quality_gate, but does not explicitly differentiate from sibling tools such as add_task_to_pipeline.

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 description explains when to use (to block subsequent tasks after a point) but lacks explicit guidance on when not to use or prerequisites like pipeline existence. No alternatives are mentioned.

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/liuboacean/agent-comm-hub'

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