veryfront__merge_branch
Requires project.files.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
branch_id | string | Yes | Branch ID to merge Format: uuid. |
expected_version | integer | No | Expected source branch version. Stale versions return a precondition failure before any merge writes. Minimum: 0. |
target_branch_id | string or null | No | Target branch ID; omit for main. An unknown target returns not found. Merge eligibility and conflicts are checked again when the merge commits. |
merge_message | string | No | Optional message describing the merge |
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__merge_branch",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 |
|---|---|---|---|
merged_documents | number | Yes | Number of documents the source branch changed that were written to the target unchanged. |
added_documents | number | Yes | Number of documents the source branch added to the target. |
deleted_documents | number | Yes | Number of documents the source branch deleted from the target. |
auto_merged_documents | number | Yes | Number of documents changed on both branches whose changes were combined without conflicts. |
audit_id | string | Yes | ID of the merge audit record holding the before and after snapshots. |
branch_name | string | Yes | Name of the source branch that was merged. |
target_branch_id | string or null | Yes | ID of the branch that received the merge, or null when the merge went into the main branch. |
target_branch_name | string | Yes | Name of the branch that received the merge ("main" for the main branch). |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "branch_id": {5 "type": "string",6 "format": "uuid",7 "description": "Branch ID to merge"8 },9 "expected_version": {10 "type": "integer",11 "minimum": 0,12 "description": "Expected source branch version. Stale versions return a precondition failure before any merge writes."13 },14 "target_branch_id": {15 "anyOf": [16 {17 "type": "string",18 "format": "uuid",19 "description": "Provide the target branch id."20 },21 {22 "type": "null",23 "description": "Provide the target branch id."24 }25 ],26 "description": "Target branch ID; omit for main. An unknown target returns not found. Merge eligibility and conflicts are checked again when the merge commits."27 },28 "merge_message": {29 "type": "string",30 "description": "Optional message describing the merge"31 }32 },33 "required": [34 "branch_id"35 ],36 "additionalProperties": false,37 "description": "Arguments for the merge_branch tool.",38 "$schema": "http://json-schema.org/draft-07/schema#"39}output-schema.json
1{2 "type": "object",3 "properties": {4 "merged_documents": {5 "type": "number",6 "description": "Number of documents the source branch changed that were written to the target unchanged."7 },8 "added_documents": {9 "type": "number",10 "description": "Number of documents the source branch added to the target."11 },12 "deleted_documents": {13 "type": "number",14 "description": "Number of documents the source branch deleted from the target."15 },16 "auto_merged_documents": {17 "type": "number",18 "description": "Number of documents changed on both branches whose changes were combined without conflicts."19 },20 "audit_id": {21 "type": "string",22 "description": "ID of the merge audit record holding the before and after snapshots."23 },24 "branch_name": {25 "type": "string",26 "description": "Name of the source branch that was merged."27 },28 "target_branch_id": {29 "type": [30 "string",31 "null"32 ],33 "description": "ID of the branch that received the merge, or null when the merge went into the main branch."34 },35 "target_branch_name": {36 "type": "string",37 "description": "Name of the branch that received the merge (\"main\" for the main branch)."38 }39 },40 "required": [41 "merged_documents",42 "added_documents",43 "deleted_documents",44 "auto_merged_documents",45 "audit_id",46 "branch_name",47 "target_branch_id",48 "target_branch_name"49 ],50 "additionalProperties": false,51 "description": "Structured result returned by the merge_branch tool.",52 "$schema": "http://json-schema.org/draft-07/schema#"53}