# List agent labels

Tool: `veryfront__list_agent_labels`

List agent labels. Requires project.agents.read.

## 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.                                                               |
| `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__list_agent_labels",
    "arguments": {
      "agent_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"labels\":[{\"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": {
      "labels": [
        {
          "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"
        }
      ]
    }
  }
}
```
