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
| Name | Required | Description | Default |
|---|---|---|---|
| stageId | Yes | Stage ID (e.g., for DEV environment) | |
| gateName | Yes | Name for the gate/rule | |
| gateType | Yes | Type of gate to add: manual, metric, compliance, or status | |
| metricRule | No | Metric rule details (required if gateType is metric) | |
| pipelineId | Yes | Pipeline ID | |
| statusRule | No | Status rule details (required if gateType is status) | |
| complianceRule | No | Compliance rule details (required if gateType is compliance) | |
| manualApprovers | No | Approvers for manual gate (required if gateType is manual) | |
| manualGateNotification | No | Whether to enable manual gate notification (default: true) |