get_default_branch_protection
Check if a repository's default branch has branch protection enabled. Returns protection status or 'unknown' when admin credentials are insufficient.
Instructions
Branch protection status on the default branch. Requires admin — falls back to 'unknown'.
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_repo": "<owner_repo>"
},
"name": "get_default_branch_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner_repo | Yes |