Check pull request risk
check_pr_riskRuns rule-based risk checks on pull requests to flag possible secrets, sensitive files, large diffs, missing tests, CI/migration/dependency changes, and debug code. Returns a risk level and findings.
Instructions
Run rule-based risk checks on a pull request: possible secrets in added lines (masked), sensitive files, large diffs, source changes without tests, CI workflow, migration and dependency changes, and leftover debug code. Returns an overall level (none/low/medium/high) and findings with file and line where possible. These are heuristics: confirm each finding by reading the code with get_pr_diff before reporting it.
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": {
"owner": "<owner>",
"repo": "<repo>",
"pullNumber": "<pullNumber>"
},
"name": "check_pr_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name, e.g. 'next.js' | |
| owner | Yes | Repository owner (user or org), e.g. 'vercel' | |
| pullNumber | Yes | Pull request number |