Skip to main content
Check if a branch can be merged based on policies. Returns blockers if merge is not allowed.

Tool details

FieldValue
Namecheck_merge_eligibility
GroupBranches

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "branch_id": {
      "type": "string",
      "format": "uuid",
      "description": "Branch ID to check"
    }
  },
  "required": [
    "branch_id"
  ],
  "additionalProperties": false,
  "description": "Input schema for the check_merge_eligibility tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "can_merge": {
      "type": "boolean",
      "description": "The can merge associated with this record."
    },
    "approval_count": {
      "type": "number",
      "description": "The approval count associated with this record."
    },
    "required_approvals": {
      "type": "number",
      "description": "The required approvals associated with this record."
    },
    "blockers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type associated with this record."
          },
          "message": {
            "type": "string",
            "description": "The message associated with this record."
          }
        },
        "required": [
          "type",
          "message"
        ],
        "additionalProperties": false,
        "description": "One blocker item associated with this record."
      },
      "description": "List of blockers associated with this record."
    }
  },
  "required": [
    "can_merge",
    "approval_count",
    "required_approvals",
    "blockers"
  ],
  "additionalProperties": false,
  "description": "Structured merge eligibility output schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}