evaluate_pr_approval
Check if a pull request can merge by dry-running its target branch's approval gate, returning allowed status plus a reason such as needs_1_more_approval, blocked_by_change_requests, or gate_satisfied.
Instructions
Dry-run the approval gate on pr_id — returns allowed + a detailed reason ("needs_1_more_approval", "blocked_by_change_requests", "gate_satisfied", or "no_gate_configured").
Needs Kiln Business.
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": {
"pr_id": "<pr_id>",
"target_branch_name": "<target_branch_name>"
},
"name": "evaluate_pr_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | The id of the pull request to check. | |
| org_id | No | Optional. The org that owns the pull request's artifact; Kiln reads it from the artifact itself, and a value naming a different org is refused with ``ORG_MISMATCH``. | |
| artifact_type | No | What the pull request changes: ``"design"`` (the default), ``"preset"`` or ``"feature"``. Default: "design". | |
| target_branch_name | Yes | The name of the branch the pull request would merge into, for example ``main``; its gate is the one checked. |