# Update branch status check

Tool: `veryfront__update_branch_status_check`

Create or replace one named status check on a branch. Requires project.files.write.

## Arguments

| Name           | Type                                   | Required | Description                                                                                 |
| -------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------- |
| `status`       | string                                 | Yes      | State to report: pending, success or failure. One of `pending`, `success`, `failure`.       |
| `description`  | string                                 |          | Description of the result.                                                                  |
| `external_url` | string                                 |          | Link to the external result.                                                                |
| `branch_id`    | string · uuid                          | Yes      | Branch the check reports on. A missing branch and one you cannot read are both not found.   |
| `check_name`   | string · min length 1 · max length 100 | Yes      | Check name, such as "ci/build"; the key of the check on its branch. At most 100 characters. |

## 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__update_branch_status_check",
    "arguments": {
      "status": "pending",
      "branch_id": "00000000-0000-0000-0000-000000000000",
      "check_name": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"branch_id\":\"00000000-0000-0000-0000-000000000000\",\"check_name\":\"string\",\"status\":\"pending\",\"description\":\"string\",\"external_url\":\"string\",\"started_at\":\"string\",\"completed_at\":\"string\",\"created_at\":\"string\",\"updated_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "00000000-0000-0000-0000-000000000000",
      "branch_id": "00000000-0000-0000-0000-000000000000",
      "check_name": "string",
      "status": "pending",
      "description": "string",
      "external_url": "string",
      "started_at": "string",
      "completed_at": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
