check_protection
Check if a GitHub branch has protection rules applied. Provide repository owner and name, and an optional branch (defaults to main).
Instructions
Check if a branch has protection rules applied
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>"
},
"name": "check_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | Yes | Repository owner | |
| branch | No | Branch name (default: main) | main |