Skip to main content
Preview what will happen when merging a branch. Shows entities that will be modified, added, deleted, and any that have conflicts requiring auto-merge.

Tool details

FieldValue
Namepreview_branch_merge
GroupBranches

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "branch_id": {
      "type": "string",
      "format": "uuid",
      "description": "Branch ID to merge"
    },
    "target_branch_id": {
      "type": "string",
      "format": "uuid",
      "description": "Target branch ID (null for main branch)"
    }
  },
  "required": [
    "branch_id"
  ],
  "additionalProperties": false,
  "description": "Input schema for the preview_branch_merge 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."
    },
    "summary": {
      "type": "object",
      "properties": {
        "modified": {
          "type": "number",
          "description": "The modified associated with this record."
        },
        "added": {
          "type": "number",
          "description": "The added associated with this record."
        },
        "deleted": {
          "type": "number",
          "description": "The deleted associated with this record."
        },
        "conflicts": {
          "type": "number",
          "description": "The conflicts associated with this record."
        }
      },
      "required": [
        "modified",
        "added",
        "deleted",
        "conflicts"
      ],
      "additionalProperties": false,
      "description": "Structured summary details associated with this record."
    },
    "entities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "entity_id": {
            "type": "string",
            "description": "The entity id associated with this record."
          },
          "entity_type": {
            "type": "string",
            "description": "The entity type associated with this record."
          },
          "status": {
            "type": "string",
            "enum": [
              "modified",
              "added",
              "deleted",
              "conflict"
            ],
            "description": "Lifecycle status for the record."
          }
        },
        "required": [
          "entity_id",
          "entity_type",
          "status"
        ],
        "additionalProperties": false,
        "description": "One entity item associated with this record."
      },
      "description": "List of entities associated with this record."
    }
  },
  "required": [
    "can_merge",
    "summary",
    "entities"
  ],
  "additionalProperties": false,
  "description": "Structured merge preview output schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}