gate_check
Evaluate multi-file changes before commit, receiving a PASS, WARN, or BLOCK verdict with detailed reasoning to prevent risky commits.
Instructions
Pre-commit safety gate. Analyzes specified changes and returns a PASS/WARN/BLOCK verdict with reasons. Use as a bounded decision aid before committing multi-file changes. BLOCK means current impact is too risky. WARN means human review recommended. PASS means low-risk.
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": {
"projectRoot": "<projectRoot>",
"files": "<files>"
},
"name": "gate_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Relative file paths being changed | |
| threshold | No | Risk threshold for BLOCK verdict (0-1, default 0.5) | |
| projectRoot | Yes | Absolute path to the project root directory | |
| tsconfigPath | No | Optional tsconfig path relative to projectRoot |