veryfront__check_branch_merge_eligibility
Requires project.read.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Read-only.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
branch_id | string | Yes | Branch to check. A missing branch and one you cannot read are both not found. Format: uuid. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__check_branch_merge_eligibility",7 "arguments": {8 "branch_id": "00000000-0000-4000-8000-000000000000"9 }10 }11}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
can_merge | boolean | Yes | Whether policies, approvals and status checks allow the merge now. |
applicable_policies | object[] | Yes | Enabled policies that match the branch. |
approvals | object[] | Yes | Approvals that still count. |
status_checks | object[] | Yes | Status checks reported for the branch. |
blockers | object[] | Yes | Reasons the branch cannot merge; empty when it can. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "branch_id": {5 "type": "string",6 "format": "uuid",7 "description": "Branch to check. A missing branch and one you cannot read are both not found."8 }9 },10 "required": [11 "branch_id"12 ],13 "additionalProperties": false,14 "description": "Use this before merge_branch to learn whether policies, approvals and status checks allow the merge now. Returns can_merge, the applicable policies, the approvals that count, the status checks and one blocker per reason; can_merge false is a result, not an error.",15 "$schema": "http://json-schema.org/draft-07/schema#"16}output-schema.json
1{2 "type": "object",3 "properties": {4 "can_merge": {5 "type": "boolean",6 "description": "Whether policies, approvals and status checks allow the merge now."7 },8 "applicable_policies": {9 "type": "array",10 "items": {11 "type": "object",12 "properties": {13 "id": {14 "type": "string",15 "format": "uuid",16 "description": "Policy ID."17 },18 "project_id": {19 "type": "string",20 "format": "uuid",21 "description": "Project that owns the policy."22 },23 "name": {24 "type": "string",25 "description": "Policy name."26 },27 "is_enabled": {28 "type": "boolean",29 "description": "Whether the policy is evaluated on merge."30 },31 "target_branch_pattern": {32 "type": [33 "string",34 "null"35 ],36 "description": "Branch-name pattern the policy applies to; null applies to every branch."37 },38 "required_approvals": {39 "type": "integer",40 "minimum": 0,41 "description": "Approvals a matching branch needs before it can merge."42 },43 "allow_self_approval": {44 "type": "boolean",45 "description": "Whether the merging user's own approval counts."46 },47 "required_reviewer_ids": {48 "anyOf": [49 {50 "type": "array",51 "items": {52 "type": "string"53 },54 "description": "List of required reviewer ids associated with this tool result."55 },56 {57 "type": "null",58 "description": "The required reviewer ids returned by the tool."59 }60 ],61 "description": "Users who must approve; null when the policy was created without reviewers."62 },63 "created_at": {64 "type": "string",65 "description": "Creation time."66 },67 "updated_at": {68 "type": "string",69 "description": "Last update time."70 }71 },72 "required": [73 "id",74 "project_id",75 "name",76 "is_enabled",77 "target_branch_pattern",78 "required_approvals",79 "allow_self_approval",80 "required_reviewer_ids",81 "created_at",82 "updated_at"83 ],84 "additionalProperties": false85 },86 "description": "Enabled policies that match the branch."87 },88 "approvals": {89 "type": "array",90 "items": {91 "type": "object",92 "properties": {93 "id": {94 "type": "string",95 "format": "uuid",96 "description": "Approval ID."97 },98 "branch_id": {99 "type": "string",100 "format": "uuid",101 "description": "Approved branch."102 },103 "approved_by": {104 "type": "string",105 "format": "uuid",106 "description": "User who approved."107 },108 "approved_at": {109 "type": "string",110 "description": "Approval time; kept after dismissal."111 },112 "comment": {113 "type": [114 "string",115 "null"116 ],117 "description": "Approval comment, or null."118 },119 "dismissed_at": {120 "type": [121 "string",122 "null"123 ],124 "description": "Dismissal time, or null while the approval counts."125 },126 "dismissed_by": {127 "anyOf": [128 {129 "type": "string",130 "format": "uuid"131 },132 {133 "type": "null",134 "description": "The dismissed by returned by the tool."135 }136 ],137 "description": "User who dismissed the approval, or null."138 },139 "dismissed_reason": {140 "type": [141 "string",142 "null"143 ],144 "description": "Dismissal reason, or null."145 }146 },147 "required": [148 "id",149 "branch_id",150 "approved_by",151 "approved_at",152 "comment",153 "dismissed_at",154 "dismissed_by",155 "dismissed_reason"156 ],157 "additionalProperties": false158 },159 "description": "Approvals that still count."160 },161 "status_checks": {162 "type": "array",163 "items": {164 "type": "object",165 "properties": {166 "id": {167 "type": "string",168 "format": "uuid",169 "description": "Status check ID."170 },171 "branch_id": {172 "type": "string",173 "format": "uuid",174 "description": "Branch the check reports on."175 },176 "check_name": {177 "type": "string",178 "description": "Check name; the key of the check on its branch."179 },180 "status": {181 "type": "string",182 "enum": [183 "pending",184 "success",185 "failure"186 ],187 "description": "Reported state."188 },189 "description": {190 "type": [191 "string",192 "null"193 ],194 "description": "Result description, or null."195 },196 "external_url": {197 "type": [198 "string",199 "null"200 ],201 "description": "Link to the external result, or null."202 },203 "started_at": {204 "type": [205 "string",206 "null"207 ],208 "description": "Start time, or null when unavailable."209 },210 "completed_at": {211 "type": [212 "string",213 "null"214 ],215 "description": "Completion time, or null while pending."216 },217 "created_at": {218 "type": "string",219 "description": "Creation time."220 },221 "updated_at": {222 "type": "string",223 "description": "Last update time."224 }225 },226 "required": [227 "id",228 "branch_id",229 "check_name",230 "status",231 "description",232 "external_url",233 "started_at",234 "completed_at",235 "created_at",236 "updated_at"237 ],238 "additionalProperties": false239 },240 "description": "Status checks reported for the branch."241 },242 "blockers": {243 "type": "array",244 "items": {245 "type": "object",246 "properties": {247 "type": {248 "type": "string",249 "enum": [250 "approval_required",251 "status_check_failed",252 "status_check_pending",253 "self_approval_not_allowed",254 "required_reviewer_missing"255 ],256 "description": "Kind of blocker."257 },258 "message": {259 "type": "string",260 "description": "Reader-facing reason."261 },262 "details": {263 "anyOf": [264 {265 "type": "object",266 "properties": {267 "policy_id": {268 "anyOf": [269 {270 "$ref": "#/properties/approvals/items/properties/dismissed_by/anyOf/0",271 "description": "The policy id returned by the tool."272 },273 {274 "type": "null",275 "description": "The policy id returned by the tool."276 }277 ],278 "description": "Policy that blocks the merge, or null."279 },280 "required_approvals": {281 "anyOf": [282 {283 "type": "integer"284 },285 {286 "type": "null",287 "description": "The required approvals returned by the tool."288 }289 ],290 "description": "Approvals the policy requires, or null."291 },292 "approval_count": {293 "anyOf": [294 {295 "type": "integer"296 },297 {298 "type": "null",299 "description": "The approval count returned by the tool."300 }301 ],302 "description": "Approvals that count toward the policy, or null."303 },304 "missing_reviewer_ids": {305 "anyOf": [306 {307 "type": "array",308 "items": {309 "type": "string"310 },311 "description": "List of missing reviewer ids associated with this tool result."312 },313 {314 "type": "null",315 "description": "The missing reviewer ids returned by the tool."316 }317 ],318 "description": "Required reviewers who have not approved, or null."319 },320 "failed_checks": {321 "anyOf": [322 {323 "type": "array",324 "items": {325 "type": "object",326 "properties": {327 "name": {328 "type": "string",329 "description": "Check name."330 },331 "description": {332 "type": [333 "string",334 "null"335 ],336 "description": "Result description, or null."337 }338 },339 "required": [340 "name",341 "description"342 ],343 "additionalProperties": false344 },345 "description": "List of failed checks associated with this tool result."346 },347 {348 "type": "null",349 "description": "The failed checks returned by the tool."350 }351 ],352 "description": "Failed status checks, or null."353 },354 "pending_checks": {355 "anyOf": [356 {357 "type": "array",358 "items": {359 "$ref": "#/properties/blockers/items/properties/details/anyOf/0/properties/failed_checks/anyOf/0/items",360 "description": "One pending check item returned by the tool."361 },362 "description": "List of pending checks associated with this tool result."363 },364 {365 "type": "null",366 "description": "The pending checks returned by the tool."367 }368 ],369 "description": "Pending status checks, or null."370 }371 },372 "required": [373 "policy_id",374 "required_approvals",375 "approval_count",376 "missing_reviewer_ids",377 "failed_checks",378 "pending_checks"379 ],380 "additionalProperties": false,381 "description": "Structured details details associated with this tool result."382 },383 {384 "type": "null",385 "description": "The details returned by the tool."386 }387 ],388 "description": "Facts behind the blocker, or null."389 }390 },391 "required": [392 "type",393 "message",394 "details"395 ],396 "additionalProperties": false397 },398 "description": "Reasons the branch cannot merge; empty when it can."399 }400 },401 "required": [402 "can_merge",403 "applicable_policies",404 "approvals",405 "status_checks",406 "blockers"407 ],408 "additionalProperties": false,409 "description": "Structured result returned by the check_branch_merge_eligibility tool.",410 "$schema": "http://json-schema.org/draft-07/schema#"411}