check_quality_gate
Evaluate code quality against configurable severity thresholds and return a pass/fail/warn verdict for CI pipeline decisions.
Instructions
Scan code and evaluate findings against configurable severity thresholds. Returns a pass/fail/warn verdict suitable for CI pipelines. Exit codes: 0=pass, 1=fail.
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": {
"code": "<code>"
},
"name": "check_quality_gate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code to scan. | |
| fail_on | No | Fail if any finding at this severity or above. Default: high | |
| warn_on | No | Warn if findings at this severity. Default: medium | |
| language | No | Optional programming language hint. | |
| file_path | No | Optional file path for context. | |
| max_findings | No | Optional absolute cap on finding count. |