# Update agent label

Tool: `veryfront__update_agent_label`

Update agent label. Requires project.agents.write.

## Arguments

| Name                 | Type                                  | Required | Description                                                                                                                       |
| -------------------- | ------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `agent_id`           | string · min length 1                 | Yes      | Provide the agent id.                                                                                                             |
| `source_target_kind` | string \| null                        |          | Source target: project, main\_branch, or preview\_branch. Null and omission select project.                                       |
| `target_branch_id`   | string · uuid \| null                 |          | Provide the target branch id.                                                                                                     |
| `label_id`           | string · uuid                         | Yes      | Provide the label id.                                                                                                             |
| `key`                | string · min length 1 · max length 64 | Yes      | Required label key. Trimmed and lowercased; starts with a letter or number and allows letters, numbers, dot, underscore and dash. |
| `value`              | string · max length 128 \| null       |          | Label value. Trimmed; a supplied blank value is invalid. Omit or use null for a key-only label, including on replacement.         |
| `color`              | string · max length 32 \| null        |          | Display color. Omit, use null or supply a blank string to clear it, including on replacement.                                     |
| `project_reference`  | string · min length 1                 |          | Project identifier or slug that scopes the tool call.                                                                             |

## 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_agent_label",
    "arguments": {
      "agent_id": "string",
      "label_id": "00000000-0000-0000-0000-000000000000",
      "key": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"resource_kind\":\"project\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"source_target_kind\":\"string\",\"source_agent_id\":\"string\",\"namespace\":\"string\",\"key\":\"string\",\"value\":\"string\",\"color\":\"string\",\"created_at\":\"string\",\"updated_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "00000000-0000-0000-0000-000000000000",
      "resource_kind": "project",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "source_target_kind": "string",
      "source_agent_id": "string",
      "namespace": "string",
      "key": "string",
      "value": "string",
      "color": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
