veryfront__create_branch_policy
Requires project.settings.manage.
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 |
|---|---|---|---|
name | string | Yes | Policy name |
is_enabled | boolean | No | Enable the policy (default: true). |
required_approvals | integer | No | Required approvals (default: 1). REST/GraphQL default to 0. Minimum: 0. |
allow_self_approval | boolean | No | Allow the merger’s approval to count (default: false). REST/GraphQL default to true. |
target_branch_pattern | string or null | No | Pattern to match branches (e.g., "main", "release/*"). Omit or send null to match every branch. |
required_reviewer_ids | string[] | No | User IDs who must approve before a matching branch can merge. |
project_reference | string | No | Project ID or slug |
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__create_branch_policy",7 "arguments": {8 "name": "example"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 |
|---|---|---|---|
id | string | Yes | Unique identifier for the returned record. Format: uuid. |
project_id | string | Yes | Project identifier associated with this result. |
name | string | Yes | Human-readable name for the returned record. |
is_enabled | boolean | Yes | |
target_branch_pattern | string or null | Yes | |
required_approvals | number | Yes | |
allow_self_approval | boolean | Yes | |
required_reviewer_ids | string[] or null | Yes | Reviewer UUIDs required for merge. Null and omission impose no specific reviewers; an empty list is accepted. |
created_at | string | Yes | Creation timestamp in ISO 8601 format. |
updated_at | string | Yes | Last update timestamp in ISO 8601 format. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "name": {5 "type": "string",6 "description": "Policy name"7 },8 "is_enabled": {9 "type": "boolean",10 "description": "Enable the policy (default: true)."11 },12 "required_approvals": {13 "type": "integer",14 "minimum": 0,15 "description": "Required approvals (default: 1). REST/GraphQL default to 0."16 },17 "allow_self_approval": {18 "type": "boolean",19 "description": "Allow the merger’s approval to count (default: false). REST/GraphQL default to true."20 },21 "target_branch_pattern": {22 "type": [23 "string",24 "null"25 ],26 "description": "Pattern to match branches (e.g., \"main\", \"release/*\"). Omit or send null to match every branch."27 },28 "required_reviewer_ids": {29 "type": "array",30 "items": {31 "type": "string",32 "format": "uuid",33 "description": "One required reviewer id item supplied to the tool."34 },35 "description": "User IDs who must approve before a matching branch can merge."36 },37 "project_reference": {38 "type": "string",39 "description": "Project ID or slug"40 }41 },42 "required": [43 "name"44 ],45 "additionalProperties": false,46 "description": "Arguments for the create_branch_policy tool.",47 "$schema": "http://json-schema.org/draft-07/schema#"48}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "format": "uuid",7 "description": "Unique identifier for the returned record."8 },9 "project_id": {10 "$ref": "#/properties/id",11 "description": "Project identifier associated with this result."12 },13 "name": {14 "type": "string",15 "description": "Human-readable name for the returned record."16 },17 "is_enabled": {18 "type": "boolean"19 },20 "target_branch_pattern": {21 "type": [22 "string",23 "null"24 ]25 },26 "required_approvals": {27 "type": "number"28 },29 "allow_self_approval": {30 "type": "boolean"31 },32 "required_reviewer_ids": {33 "anyOf": [34 {35 "type": "array",36 "items": {37 "type": "string"38 },39 "description": "List of required reviewer ids associated with this tool result."40 },41 {42 "type": "null",43 "description": "The required reviewer ids returned by the tool."44 }45 ],46 "description": "Reviewer UUIDs required for merge. Null and omission impose no specific reviewers; an empty list is accepted."47 },48 "created_at": {49 "type": "string",50 "description": "Creation timestamp in ISO 8601 format."51 },52 "updated_at": {53 "type": "string",54 "description": "Last update timestamp in ISO 8601 format."55 }56 },57 "required": [58 "id",59 "project_id",60 "name",61 "is_enabled",62 "target_branch_pattern",63 "required_approvals",64 "allow_self_approval",65 "required_reviewer_ids",66 "created_at",67 "updated_at"68 ],69 "additionalProperties": false,70 "description": "Structured result returned by the create_branch_policy tool.",71 "$schema": "http://json-schema.org/draft-07/schema#"72}