get_pull_protection
Evaluate pull branch protection and merge-readiness from MCP.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
repo |
string | Yes | Repository path. Format: teams/team_slug/repo_slug or username/repo_slug. |
pull_number |
integer | Yes | Pull request number within the repo. |
Example
curl -X POST https://pearing.example/api/v1/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_pull_protection",
"arguments": {
"repo": "teams/acme/webapp",
"pull_number": 42
}
}
}'
Response
Returns pull protection status, merge blocking state, and per-rule checks.