Skip to main content
Merge a branch into the target branch (or main if not specified). This copies all content changes from the source branch to the target.

Tool details

FieldValue
Namemerge_branch
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)"
    },
    "merge_message": {
      "type": "string",
      "description": "Optional message describing the merge"
    }
  },
  "required": [
    "branch_id"
  ],
  "additionalProperties": false,
  "description": "Input schema for the merge_branch tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "merged_documents": {
      "type": "number",
      "description": "The merged documents associated with this record."
    },
    "added_documents": {
      "type": "number",
      "description": "The added documents associated with this record."
    },
    "deleted_documents": {
      "type": "number",
      "description": "The deleted documents associated with this record."
    },
    "auto_merged_documents": {
      "type": "number",
      "description": "The auto merged documents associated with this record."
    },
    "audit_id": {
      "type": "string",
      "description": "The audit id associated with this record."
    },
    "branch_name": {
      "type": "string",
      "description": "The branch name associated with this record."
    },
    "target_branch_name": {
      "type": "string",
      "description": "The target branch name associated with this record."
    }
  },
  "required": [
    "merged_documents",
    "added_documents",
    "deleted_documents",
    "auto_merged_documents",
    "audit_id",
    "branch_name",
    "target_branch_name"
  ],
  "additionalProperties": false,
  "description": "Structured merge branch output schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}