Create a merge policy for branches matching a pattern. Requires project.settings.manage.
Arguments
namestringrequiredPolicy name
is_enabledbooleanEnable the policy (default: true).
required_approvalsinteger · min 0Required approvals (default: 1). REST/GraphQL default to 0.
allow_self_approvalbooleanAllow the merger’s approval to count (default: false). REST/GraphQL default to true.
target_branch_patternstring | nullPattern to match branches (e.g., "main", "release/*"). Omit or send null to match every branch.
required_reviewer_idsarray of string · uuidUser IDs who must approve before a matching branch can merge.
project_referencestringProject ID or slug
Responses
curl -X POST -N "https://api.veryfront.com/mcp" \ -H "Authorization: Bearer $VERYFRONT_API_KEY" \ -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "veryfront__create_branch_policy", "arguments": { "name": "string" } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\",\"is_enabled\":false,\"target_branch_pattern\":\"string\",\"required_approvals\":0,\"allow_self_approval\":false,\"required_reviewer_ids\":[\"string\"],\"created_at\":\"string\",\"updated_at\":\"string\"}" } ], "structuredContent": { "id": "00000000-0000-0000-0000-000000000000", "project_id": "00000000-0000-0000-0000-000000000000", "name": "string", "is_enabled": false, "target_branch_pattern": "string", "required_approvals": 0, "allow_self_approval": false, "required_reviewer_ids": [ "string" ], "created_at": "string", "updated_at": "string" } }}The tool ran; its output is result.structuredContent.