Skip to main content
Glama
MCP Velocity GraphQL Server

MCP Velocity GraphQL Server

by mrchris2000

add_pipeline_gate

Attach a manual, metric, compliance, or status gate to a pipeline stage by creating the specified rule and linking it to that stage.

Instructions

Add a gate (manual, metric, compliance, or status) to a pipeline stage. This tool will create the specified rule and attach it as a gate to the given stage in the pipeline.

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": {
      "pipelineId": "<pipelineId>",
      "stageId": "<stageId>",
      "gateType": "<gateType>",
      "gateName": "<gateName>"
    },
    "name": "add_pipeline_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
stageIdYesStage ID (e.g., for DEV environment)
gateNameYesName for the gate/rule
gateTypeYesType of gate to add: manual, metric, compliance, or status
metricRuleNoMetric rule details (required if gateType is metric)
pipelineIdYesPipeline ID
statusRuleNoStatus rule details (required if gateType is status)
complianceRuleNoCompliance rule details (required if gateType is compliance)
manualApproversNoApprovers for manual gate (required if gateType is manual)
manualGateNotificationNoWhether to enable manual gate notification (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.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 burden. It states that a rule is created and attached, but says nothing about required permissions, idempotency or duplicate handling, whether existing gates are affected, or what happens if the type-specific rule objects are missing.

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. The second sentence largely restates the first ("create the rule and attach it as a gate") and could be dropped, but there is no padding or noise.

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 mutation tool with 9 parameters, deeply nested rule objects, conditional field requirements, no annotations and no output schema, the description is too thin. It should at minimum explain the gateType-driven parameter matrix and what the call returns on success.

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 100% and nested objects already document conditional requirements (metricRule required for metric, manualApprovers for manual, etc.), plus defaults for manualGateNotification. The description only echoes the gateType enum values, adding essentially no meaning beyond the 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 gives a specific verb and resource ("Add a gate ... to a pipeline stage") and enumerates the four gate types, so the agent knows exactly what is created. It does not distinguish itself from neighbors like add_stage or create_pipeline, but the purpose is unambiguous.

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?

There is no guidance on when to use this tool versus alternatives (e.g., add_stage or update_stage), no preconditions such as the pipeline/stage needing to exist, and no note on whether duplicate gates are permitted. The only implied usage comes from the gateType enumeration.

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