# List branch policies

Tool: `veryfront__list_branch_policies`

List the merge policies of a project, which set the approvals and reviewers a branch needs. Requires project.read.

## Arguments

| Name                | Type                                    | Required | Description                                                                                      |
| ------------------- | --------------------------------------- | -------- | ------------------------------------------------------------------------------------------------ |
| `project_reference` | string                                  |          | Project ID or slug                                                                               |
| `enabled_only`      | boolean                                 |          | Only return enabled policies                                                                     |
| `limit`             | integer · min 1 · max 100               |          | Page size 1–100. Omit limit and cursor for the complete collection; cursor alone defaults to 20. |
| `cursor`            | string · min length 1 · max length 4096 |          | Opaque continuation bound to collection, project, branch, principal, filters and page size.      |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
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__list_branch_policies",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"policies\":[{\"id\":\"string\",\"name\":\"string\",\"is_enabled\":false,\"required_approvals\":0,\"allow_self_approval\":false,\"target_branch_pattern\":\"string\"}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "policies": [
        {
          "id": "string",
          "name": "string",
          "is_enabled": false,
          "required_approvals": 0,
          "allow_self_approval": false,
          "target_branch_pattern": "string"
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
